_prune_plib_registry: correct _match_contents use
authorZac Medico <zmedico@gentoo.org>
Sat, 21 May 2011 13:09:46 +0000 (06:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 26 May 2011 03:47:24 +0000 (20:47 -0700)
pym/portage/dbapi/vartree.py

index d0fb86c498b418d9753f7d9d51ea61b3a4884bda..566861ef022e05f4a8188a1e75d25f8237c23e0a 100644 (file)
@@ -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") % \