In spawn(), put the full cpv in opt_name, instead of just $PF. Thanks to
authorZac Medico <zmedico@gentoo.org>
Wed, 14 Jan 2009 03:59:31 +0000 (03:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Jan 2009 03:59:31 +0000 (03:59 -0000)
Diego Pettenò <flameeyes@g.o> for the suggestion. (trunk r12501)

svn path=/main/branches/2.1.6/; revision=12511

pym/portage/__init__.py

index a6ef919dee0df650ef7ec3512d262d11e67891a0..cacb6c93754bccfd6bf7cf529c01de9f5b78829e 100644 (file)
@@ -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: