From: Mike Frysinger Date: Wed, 31 Oct 2012 18:46:39 +0000 (-0400) Subject: eclean: sort pkg list shown to user X-Git-Tag: gentoolkit-0.3.0.7~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a43a42dceec55338b072344f0b18a1abfcd370d6;p=gentoolkit.git eclean: sort pkg list shown to user This makes it much easier to scan through and pick out packages. Signed-off-by: Mike Frysinger --- diff --git a/pym/gentoolkit/eclean/output.py b/pym/gentoolkit/eclean/output.py index c8c3f78..e7ce59b 100644 --- a/pym/gentoolkit/eclean/output.py +++ b/pym/gentoolkit/eclean/output.py @@ -178,7 +178,9 @@ class OutputControl(object): @param pkgs: dict. of {cat/pkg-ver: src_uri,} """ indent = ' ' * 12 - for key in pkgs: + keys = pkgs.keys() + keys.sort() + for key in keys: if pkgs[key]: saved = "" else: