From 523ff36ba4c6c2dd82dc5f5188b0fad9799186e6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 10 Aug 2009 02:45:31 +0000 Subject: [PATCH] In calc_depclean(), sort packages that are displayed due to being pulled in by link level dependencies. svn path=/main/trunk/; revision=13970 --- pym/_emerge/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index cd980231f..5bd789c1f 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1028,7 +1028,8 @@ def calc_depclean(settings, trees, ldpath_mtimes, line in wrap(msg, 70)), level=logging.WARNING, noiselevel=-1) msg = [] - for pkg, consumers in consumer_map.iteritems(): + for pkg in sorted(consumer_map, key=cmp_sort_key(cmp_pkg_cpv)): + consumers = consumer_map[pkg] unique_consumers = set(chain(*consumers.values())) unique_consumers = sorted(consumer.mycpv \ for consumer in unique_consumers) -- 2.26.2