In dblink.treewalk(), handle the case where the current cpv is already installed... v2.1.2.11
authorZac Medico <zmedico@gentoo.org>
Tue, 31 Jul 2007 04:47:37 +0000 (04:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 31 Jul 2007 04:47:37 +0000 (04:47 -0000)
svn path=/main/branches/2.1.2.9/; revision=7532

pym/portage.py

index 44de57f01929845c7f34824dbd122fc1aed35ca0..55d0f791f52f6e6fa39221f4d697121b780e7e67 100644 (file)
@@ -7435,6 +7435,11 @@ class dblink:
 
                slot_matches = self.vartree.dbapi.match(
                        "%s:%s" % (self.mysplit[0], self.settings["SLOT"]))
+               if self.mycpv not in slot_matches and \
+                       self.vartree.dbapi.cpv_exists(self.mycpv):
+                       # handle multislot or unapplied slotmove
+                       slot_matches.append(self.mycpv)
+
                if slot_matches:
                        # Used by self.isprotected().
                        max_cpv = None