eclean: sort pkg list shown to user
authorMike Frysinger <vapier@gentoo.org>
Wed, 31 Oct 2012 18:46:39 +0000 (14:46 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 31 Oct 2012 18:46:39 +0000 (14:46 -0400)
This makes it much easier to scan through and pick out packages.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
pym/gentoolkit/eclean/output.py

index c8c3f780b6064afe20ecdbbdf86f6f4cb0601c59..e7ce59bdae94f36ce923424b93de46c32c8a3bc9 100644 (file)
@@ -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: