summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-14 03:59:31 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-14 03:59:31 +0000
commit081ec8095db0b488031b042dc3023598e7b2fb9e (patch)
tree97e884a94ae17588f5704a7196e078c9b61c982c /pym
parent82748c6e95b20e19938c5da421eda0b13814d103 (diff)
downloadportage-081ec8095db0b488031b042dc3023598e7b2fb9e.tar.gz
portage-081ec8095db0b488031b042dc3023598e7b2fb9e.tar.bz2
portage-081ec8095db0b488031b042dc3023598e7b2fb9e.zip
In spawn(), put the full cpv in opt_name, instead of just $PF. Thanks to
Diego Pettenò <flameeyes@g.o> for the suggestion. (trunk r12501) svn path=/main/branches/2.1.6/; revision=12511
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index a6ef919de..cacb6c937 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3023,7 +3023,8 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero
else:
check_config_instance(mysettings)
env=mysettings.environ()
- keywords["opt_name"]="[%s]" % mysettings["PF"]
+ if mysettings.mycpv is not None:
+ keywords["opt_name"] = "[%s]" % mysettings.mycpv
fd_pipes = keywords.get("fd_pipes")
if fd_pipes is None: