From: Zac Medico Date: Sat, 14 May 2011 21:41:22 +0000 (-0700) Subject: prune_plib_registry: display preserved libs X-Git-Tag: v2.2.0_alpha34~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a6f909f838f50f5abadf929d6ff7acf30705fbe;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 13d9ab220..a7e285cf9 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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