From: Zac Medico Date: Sat, 21 May 2011 13:09:46 +0000 (-0700) Subject: _prune_plib_registry: correct _match_contents use X-Git-Tag: v2.2.0_alpha35~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc372d37ec55bf3ff0b38942f9c6080f3ca61a75;p=portage.git _prune_plib_registry: correct _match_contents use --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index cd93a12ff..60d52a83e 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1532,7 +1532,7 @@ class dblink(object): if unmerge_preserve: for path in sorted(unmerge_preserve): contents_key = self._match_contents(path) - if contents_key is None: + if not contents_key: continue obj_type = self.getcontents()[contents_key][0] self._display_merge(_(">>> needed %s %s\n") % \