From a43a42dceec55338b072344f0b18a1abfcd370d6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 31 Oct 2012 14:46:39 -0400 Subject: [PATCH] eclean: sort pkg list shown to user This makes it much easier to scan through and pick out packages. Signed-off-by: Mike Frysinger --- pym/gentoolkit/eclean/output.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.26.2