From: Zac Medico Date: Sat, 14 May 2011 21:41:22 +0000 (-0700) Subject: prune_plib_registry: display preserved libs X-Git-Tag: v2.1.9.50~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6792105073822a6d508ee17e8f792566566b8dda;p=portage.git prune_plib_registry: display preserved libs 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(). --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index db081e127..189b47a2e 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1512,6 +1512,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