From: Zac Medico Date: Wed, 14 Jan 2009 03:16:11 +0000 (-0000) Subject: Make sure spawn() always initializes opt_name because later code assumes that it is. X-Git-Tag: v2.2_rc22~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c6e010c6e58317d99d46378ceece3a4e760b2262;p=portage.git Make sure spawn() always initializes opt_name because later code assumes that it is. svn path=/main/trunk/; revision=12502 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 44a1358fe..1a8e17f5a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3035,6 +3035,9 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero env=mysettings.environ() if mysettings.mycpv is not None: keywords["opt_name"] = "[%s]" % mysettings.mycpv + else: + keywords["opt_name"] = "[%s/%s]" % \ + (mysettings.get("CATEGORY",""), mysettings.get("PF","")) fd_pipes = keywords.get("fd_pipes") if fd_pipes is None: