aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/euscan/scan.py')
-rw-r--r--pym/euscan/scan.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/pym/euscan/scan.py b/pym/euscan/scan.py
index dc7df75..1fc13bb 100644
--- a/pym/euscan/scan.py
+++ b/pym/euscan/scan.py
@@ -54,8 +54,6 @@ def parse_src_uri(uris):
if '://' not in uri:
continue
- if 'mirror://' in uri:
- uri = from_mirror(uri)
if uris and uris[-1] == "->":
operator = uris.pop()
@@ -102,7 +100,7 @@ def scan_upstream(query, on_progress=None):
else:
matches = Query(query).find(
include_masked=True,
- in_installed=False
+ in_installed=False,
)
if not matches:
@@ -165,9 +163,13 @@ def scan_upstream(query, on_progress=None):
uris = pkg.environment('SRC_URI')
cpv = pkg.cpv
- urls = parse_src_uri(uris)
- versions = handlers.scan(pkg, urls, on_progress)
+ uris = parse_src_uri(uris)
+ uris_expanded = [ from_mirror(uri) if 'mirror://' in uri else uri for uri in uris ]
+ pkg._uris = uris
+ pkg._uris_expanded = uris_expanded
+
+ versions = handlers.scan(pkg, uris, on_progress)
cp, ver, rev = portage.pkgsplit(pkg.cpv)