From adbefe1e3c84f4015e7dbcc9aee18b0f10833e4d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 May 2011 13:46:40 -0700 Subject: [PATCH] Add back cpv_exists check from previous commit. --- pym/portage/dbapi/vartree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index b4e231e55..a34f1ec01 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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: -- 2.26.2