summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-10 02:45:31 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-10 02:45:31 +0000
commit523ff36ba4c6c2dd82dc5f5188b0fad9799186e6 (patch)
tree62407405782d79039db24beb237f66f9ea779f1d
parentbcaeb5febbe0d242ca2a51db237ac11630eb74f2 (diff)
downloadportage-523ff36ba4c6c2dd82dc5f5188b0fad9799186e6.tar.gz
portage-523ff36ba4c6c2dd82dc5f5188b0fad9799186e6.tar.bz2
portage-523ff36ba4c6c2dd82dc5f5188b0fad9799186e6.zip
In calc_depclean(), sort packages that are displayed due to being pulled
in by link level dependencies. svn path=/main/trunk/; revision=13970
-rw-r--r--pym/_emerge/actions.py3
1 files changed, 2 insertions, 1 deletions
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)