From: fuzzyray Date: Wed, 19 Sep 2007 21:57:36 +0000 (-0000) Subject: print Keywords in sorted order X-Git-Tag: gentoolkit-0.2.4.3~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=54915fc692c598eb5e6bfa6202eb1bc93bb1f5af;p=gentoolkit.git print Keywords in sorted order svn path=/; revision=449 --- 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]: