For bug #175058, comment #15, expand all possible variables in each argument. (trunk...
authorZac Medico <zmedico@gentoo.org>
Sat, 5 May 2007 17:41:18 +0000 (17:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 May 2007 17:41:18 +0000 (17:41 -0000)
svn path=/main/branches/2.1.2/; revision=6479

pym/portage.py

index ceef30f70710d6b01155522b262c7c76069ae6cd..56f5ff529e965a12b7d0e5f8511e0ef2f1ee00e8 100644 (file)
@@ -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 \