euscan: patch_metadata regex fix to match bz2 sources

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-07-26 15:50:30 +02:00
parent 1835327d5c
commit ad0c946230

View File

@ -117,7 +117,7 @@ def get_deb_url(name):
content = opened.read()
for link in BeautifulSoup(content, parseOnlyThese=SoupStrainer("a")):
if re.match("[^\s]+\.debian\.tar\.gz", link.text):
if re.match("[^\s]+\.debian\.tar\.(?:gz|bz2)", link.text):
deb_url = link["href"]
deb_type = "source"
break