config.setcpv: use constructed _pkg_str for mycpv
authorZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 04:58:08 +0000 (21:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 18 Oct 2012 04:58:08 +0000 (21:58 -0700)
pym/portage/package/ebuild/config.py

index 9353b15213f991cc860213aaca3120aa94e880d7..45a3351a921d050f3421cf0b3735ae7b745b74fc 100644 (file)
@@ -1312,8 +1312,9 @@ class config(object):
                                pkg_configdict["PORTAGE_REPO_NAME"] = repository
                        iuse = pkg_configdict["IUSE"]
                        if pkg is None:
-                               cpv_slot = _pkg_str(self.mycpv, metadata=pkg_configdict,
+                               self.mycpv = _pkg_str(self.mycpv, metadata=pkg_configdict,
                                        settings=self)
+                               cpv_slot = self.mycpv
                        else:
                                cpv_slot = pkg
                        pkginternaluse = []