Commit a085f661 authored by PJ Eby's avatar PJ Eby

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
parent 47ed0531
......@@ -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"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment