summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index ceef30f70..56f5ff529 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2568,9 +2568,9 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
"${URI}":loc, "${FILE}":myfile}
for i in xrange(len(myfetch)):
token = myfetch[i].strip("\"'")
- value = variables.get(token)
- if value is not None:
- myfetch[i] = value
+ for var, value in variables.iteritems():
+ token = token.replace(var, value)
+ myfetch[i] = token
spawn_keywords = {}
if "userfetch" in mysettings.features and \