@ -20,8 +20,11 @@ def scan_url(pkg, url, options):
|
||||
|
||||
cp, ver, rev = portage.pkgsplit(pkg.cpv)
|
||||
|
||||
project, filename = re.search("mirror://sourceforge/([^/]+)/(?:.*/)?([^/]+)",
|
||||
url).groups()
|
||||
project, filename = re.search(
|
||||
"mirror://sourceforge/([^/]+)/(?:.*/)?([^/]+)",
|
||||
url
|
||||
).groups()
|
||||
|
||||
base_url = "http://qa.debian.org/watch/sf.php/%s" % project
|
||||
file_pattern = regex_from_template(
|
||||
filename.replace(ver, "${PV}")
|
||||
|
@ -165,7 +165,10 @@ def scan_upstream(query, on_progress=None):
|
||||
cpv = pkg.cpv
|
||||
|
||||
uris = parse_src_uri(uris)
|
||||
uris_expanded = [ from_mirror(uri) if 'mirror://' in uri else uri for uri in uris ]
|
||||
uris_expanded = [
|
||||
from_mirror(uri) if 'mirror://' in uri else uri for uri in uris
|
||||
]
|
||||
|
||||
pkg._uris = uris
|
||||
pkg._uris_expanded = uris_expanded
|
||||
|
||||
|
Reference in New Issue
Block a user