From: Zac Medico Date: Sat, 5 May 2007 17:41:18 +0000 (-0000) Subject: For bug #175058, comment #15, expand all possible variables in each argument. (trunk... X-Git-Tag: v2.1.2.7~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=183c9d8ba7a559a8acd20327b91d68f0a49cdaa6;p=portage.git For bug #175058, comment #15, expand all possible variables in each argument. (trunk r6477:6478) svn path=/main/branches/2.1.2/; revision=6479 --- 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 \