Skip to content

Commit

Permalink
tools/localdepends.py: Fix feedparser downloading
Browse files Browse the repository at this point in the history
Currently, feedparser uses a source tarball name
like the following:  feedparser-5.2.0.post1.tar.gz
  • Loading branch information
thp committed May 14, 2015
1 parent a9a3e51 commit 69fbe0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/localdepends.py
Expand Up @@ -31,7 +31,7 @@
def get_tarball_url(modulename):
url = 'http://pypi.python.org/pypi/' + modulename
html = urllib2.urlopen(url).read()
match = re.search(r'(http[s]?://[^>]*%s-([0-9.]*)\.tar\.gz)' % modulename, html)
match = re.search(r'(http[s]?://[^>]*%s-([0-9.]*)(?:\.post\d+)?\.tar\.gz)' % modulename, html)
return match.group(0) if match is not None else None

for module, required_files in MODULES:
Expand Down

0 comments on commit 69fbe0b

Please sign in to comment.