Skip to content

Commit

Permalink
frostwire.py: Fix to reflect upstream tarball naming
Browse files Browse the repository at this point in the history
Since 6.0.0 they changed the naming from
frostwire-5.7.7.noarch.tar.gz
to
frostwire_6.0.3.orig.tar.gz

Support both namings in case they change their mind again.
  • Loading branch information
Christoph Korn committed Jan 2, 2015
1 parent d1e5390 commit 59ea504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frostwire.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def download(spiUrl):
for dir in dirs:
download_dir = DIR_URL+dir
data = download(download_dir).split("\n")
tarball_re = re.compile('<a href="(?P<file>frostwire-([\d\.]+)\.noarch\.tar\.(?:gz|bz2|xz))">')
tarball_re = re.compile('<a href="(?P<file>frostwire(?:-|\_)([\d\.]+)\.(?:noarch|orig)\.tar\.(?:gz|bz2|xz))">')
for line in data:
search_result = re.search(tarball_re, line)
if not search_result: continue
Expand Down

0 comments on commit 59ea504

Please sign in to comment.