print Keywords in sorted order
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 19 Sep 2007 21:57:36 +0000 (21:57 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 19 Sep 2007 21:57:36 +0000 (21:57 -0000)
svn path=/; revision=449

trunk/src/epkginfo/epkginfo

index 0f855e95bddf17778568f4e18a33674d7e3eda91..637deff70fac37056cf76d86bf30241b882ceecf 100755 (executable)
@@ -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]: