From 54915fc692c598eb5e6bfa6202eb1bc93bb1f5af Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 19 Sep 2007 21:57:36 +0000 Subject: [PATCH] print Keywords in sorted order svn path=/; revision=449 --- trunk/src/epkginfo/epkginfo | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/trunk/src/epkginfo/epkginfo b/trunk/src/epkginfo/epkginfo index 0f855e9..637deff 100755 --- a/trunk/src/epkginfo/epkginfo +++ b/trunk/src/epkginfo/epkginfo @@ -58,10 +58,13 @@ def earch(workdir): arch = None archdict[arch] = pkg + archlist = archdict.keys(); + archlist.sort() + for pkg in ebuildlist: - print darkgreen("Keywords: ") + pkg + ": ", - for value,key in archdict.iteritems(): - if (key == pkg and value): + print darkgreen("Keywords: ") + pkg + ":", + for value in archlist: + if (value and archdict[value] == pkg): if value[0] == "-": print red(value), elif "~" == value[0]: -- 2.26.2