From: Zac Medico Date: Sat, 5 May 2007 17:40:51 +0000 (-0000) Subject: For bug #175058, comment #15, expand all possible variables in each argument. X-Git-Tag: v2.2_pre1~1456 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4c9251aab5100e919bd014487eaddbd8d2bd66f;p=portage.git For bug #175058, comment #15, expand all possible variables in each argument. svn path=/main/trunk/; revision=6478 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 5e6e27521..5143d7f65 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2635,9 +2635,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 \