From: Zac Medico Date: Wed, 14 Oct 2009 05:07:03 +0000 (-0000) Subject: When --depclean pulls in the provider of a library because of installed X-Git-Tag: v2.2_rc47~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bffaa1aee41647cc274d70c840366ac9a171db86;p=portage.git When --depclean pulls in the provider of a library because of installed consumers, display the soname(s) of the consumed libraries. svn path=/main/trunk/; revision=14599 --- diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 9788c0857..78d477945 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1032,13 +1032,20 @@ def calc_depclean(settings, trees, ldpath_mtimes, msg = [] for pkg in sorted(consumer_map, key=cmp_sort_key(cmp_pkg_cpv)): consumers = consumer_map[pkg] + consumer_libs = {} + for lib, lib_consumers in consumers.items(): + for consumer in lib_consumers: + consumer_libs.setdefault( + consumer.mycpv, set()).add(linkmap.getSoname(lib)) unique_consumers = set(chain(*consumers.values())) unique_consumers = sorted(consumer.mycpv \ for consumer in unique_consumers) msg.append("") msg.append(" %s pulled in by:" % (pkg.cpv,)) for consumer in unique_consumers: - msg.append(" %s" % (consumer,)) + libs = consumer_libs[consumer] + msg.append(" %s needs %s" % \ + (consumer, ', '.join(sorted(libs)))) msg.append("") writemsg_level("".join(prefix + "%s\n" % line for line in msg), level=logging.WARNING, noiselevel=-1)