Add back cpv_exists check from previous commit.
authorZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 20:46:40 +0000 (13:46 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 20:46:40 +0000 (13:46 -0700)
pym/portage/dbapi/vartree.py

index b4e231e550e9adafa9a8366ca6a94d3727ffb5a2..a34f1ec017ab83e4deae071f90dfc21a01668863 100644 (file)
@@ -1485,6 +1485,8 @@ class dblink(object):
                                if cpv_lib_map:
                                        self._remove_preserved_libs(cpv_lib_map)
                                        for cpv, removed in cpv_lib_map.items():
+                                               if not self.vartree.dbapi.cpv_exists(cpv):
+                                                       continue
                                                self.vartree.dbapi.removeFromContents(cpv, removed)
 
                                if unmerge: