Correctly pull the metadata again when the node is converted.
authorZac Medico <zmedico@gentoo.org>
Wed, 28 Mar 2007 17:14:58 +0000 (17:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 Mar 2007 17:14:58 +0000 (17:14 -0000)
svn path=/main/trunk/; revision=6307

pym/emerge/__init__.py

index 6304f25f30f3c1910f4d18fb7a69c05a1a7bea2f..d41d9af0b81a3f9ef304b5f6994eeb0837814ef1 100644 (file)
@@ -1160,13 +1160,14 @@ class depgraph:
                if addme:
                        metadata = dict(izip(self._mydbapi_keys,
                                mydbapi.aux_get(mykey, self._mydbapi_keys)))
-                       if merging == 0 and vardbapi.cpv_exists(mykey):
+                       if merging == 0 and vardbapi.cpv_exists(mykey) and \
+                               mytype != "installed":
                                mybigkey[0] = "installed"
-                               jbigkey = tuple(mybigkey)
                                mydbapi = vardbapi
-                               metadata["USE"] = vardbapi.aux_get(mykey, ["USE"])[0]
-                               myuse = metadata["USE"].split()
-                               metadata["SLOT"] = vardbapi.aux_get(mykey, ["SLOT"])[0]
+                               jbigkey = tuple(mybigkey)
+                               metadata = dict(izip(self._mydbapi_keys,
+                                       mydbapi.aux_get(mykey, self._mydbapi_keys)))
+                               myuse = mydbapi.aux_get(mykey, ["USE"])[0].split()
                        slot_atom = "%s:%s" % (portage.dep_getkey(mykey), metadata["SLOT"])
                        existing_node = self._slot_node_map[myroot].get(
                                slot_atom, None)