Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eclean/
Date: Wed, 31 Oct 2012 18:47:49
Message-Id: 1351709199.a43a42dceec55338b072344f0b18a1abfcd370d6.vapier@gentoo
1 commit: a43a42dceec55338b072344f0b18a1abfcd370d6
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 31 18:46:39 2012 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 31 18:46:39 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=a43a42dc
7
8 eclean: sort pkg list shown to user
9
10 This makes it much easier to scan through and pick out packages.
11
12 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
13
14 ---
15 pym/gentoolkit/eclean/output.py | 4 +++-
16 1 files changed, 3 insertions(+), 1 deletions(-)
17
18 diff --git a/pym/gentoolkit/eclean/output.py b/pym/gentoolkit/eclean/output.py
19 index c8c3f78..e7ce59b 100644
20 --- a/pym/gentoolkit/eclean/output.py
21 +++ b/pym/gentoolkit/eclean/output.py
22 @@ -178,7 +178,9 @@ class OutputControl(object):
23 @param pkgs: dict. of {cat/pkg-ver: src_uri,}
24 """
25 indent = ' ' * 12
26 - for key in pkgs:
27 + keys = pkgs.keys()
28 + keys.sort()
29 + for key in keys:
30 if pkgs[key]:
31 saved = ""
32 else: