aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-06-14 12:46:35 +0000
committerPJ Eby <distutils-sig@python.org>2005-06-14 12:46:35 +0000
commita085f6619ea0c1d19db412fd10741bae3f13ecfb (patch)
tree8821fe6074e9b07aa86451012baed24167f15187 /setuptools/package_index.py
parent47ed0531729d9202639646e5c52706e8f3f2a886 (diff)
downloadexternal_python_setuptools-a085f6619ea0c1d19db412fd10741bae3f13ecfb.tar.gz
external_python_setuptools-a085f6619ea0c1d19db412fd10741bae3f13ecfb.tar.bz2
external_python_setuptools-a085f6619ea0c1d19db412fd10741bae3f13ecfb.zip
Support downloading packages that were uploaded to PyPI (by scanning all
links on package pages, not just the homepage/download links). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041062
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 04c1879e..0645dc3e 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -116,10 +116,10 @@ class PackageIndex(AvailableDistributions):
f.close()
if url.startswith(self.index_url):
self.process_index(url, page)
- else:
- for match in HREF.finditer(page):
- link = urlparse.urljoin(base, match.group(1))
- self.process_url(link)
+
+ for match in HREF.finditer(page):
+ link = urlparse.urljoin(base, match.group(1))
+ self.process_url(link)
def process_index(self,url,page):
"""Process the contents of a PyPI page"""