prune_plib_registry: display preserved libs
authorZac Medico <zmedico@gentoo.org>
Sat, 14 May 2011 21:41:22 +0000 (14:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 14 May 2011 21:41:22 +0000 (14:41 -0700)
Since commit c64d4abee145d083c70273be8fd23bd56dffe7ec, sometimes we
preserve libs for unmerged packages here (bug #286714), so we should
display them like we do in _add_preserve_libs_to_contents().

pym/portage/dbapi/vartree.py

index 13d9ab2207878616023315cc0f9586df7dbe6cc4..a7e285cf9b04c73588a77d071a86c4450695dbd5 100644 (file)
@@ -1510,6 +1510,13 @@ class dblink(object):
                                        plib_registry.unregister(self.mycpv,
                                                self.settings["SLOT"], counter)
                                        if unmerge_preserve:
+                                               for path in sorted(unmerge_preserve):
+                                                       contents_key = self._match_contents(path)
+                                                       if contents_key is None:
+                                                               continue
+                                                       obj_type = self.getcontents()[contents_key][0]
+                                                       self._display_merge(_(">>> needed   %s %s\n") % \
+                                                               (obj_type, contents_key), noiselevel=-1)
                                                plib_registry.register(self.mycpv,
                                                        self.settings["SLOT"], counter, unmerge_preserve)
                                                # Remove the preserved files from our contents