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

svn path=/main/trunk/; revision=12501

pym/portage/__init__.py

index 1f122bdf5dc78fbdc9f45c7ebe0d340c8bfa8144..44a1358feb40093fa80cd7702eada336f1ea3177 100644 (file)
@@ -3033,7 +3033,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: