summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-14 03:59:43 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-14 03:59:43 +0000
commitdf672e87487465549b1b1c95820909125f3bf499 (patch)
treebc8faad550e2b4cf9bee5f823b9aa0354e63a446 /pym
parent081ec8095db0b488031b042dc3023598e7b2fb9e (diff)
downloadportage-df672e87487465549b1b1c95820909125f3bf499.tar.gz
portage-df672e87487465549b1b1c95820909125f3bf499.tar.bz2
portage-df672e87487465549b1b1c95820909125f3bf499.zip
Make sure spawn() always initializes opt_name because later code assumes that it is.
(trunk r12502) svn path=/main/branches/2.1.6/; revision=12512
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index cacb6c937..46b702d4f 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3025,6 +3025,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: