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.1.9.50~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9af34ca89e7216e3c8a582d6d865ffa5ba518182;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 d0fb86c49..566861ef0 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1507,7 +1507,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") % \