sort summarylist output (patch by Robert Buchholz <rbu@gentoo.org>)
authorMarius Mauch <genone@gentoo.org>
Sun, 28 Sep 2008 18:58:29 +0000 (18:58 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 28 Sep 2008 18:58:29 +0000 (18:58 -0000)
svn path=/main/trunk/; revision=11591

bin/glsa-check
pym/portage/glsa.py

index 82fb5e49d7a624ffaf9b085afb2ca181c05d18e5..f789af1ec0a1343d4dfc579d819f1e9bf7ca2ff8 100644 (file)
@@ -167,6 +167,7 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr):
        fd2.write(green("[U]")+" means the system is not affected and\n")
        fd2.write(red("[N]")+" indicates that the system might be affected.\n\n")
 
+       myglsalist.sort()
        for myid in myglsalist:
                try:
                        myglsa = Glsa(myid, portage.settings, vardb, portdb)
index e44c279b1cbd43b4e14a2ea0ea0f3635c52fd0b2..f0d99c8c1b6980e399a27123642eb1cf6a5bbdce 100644 (file)
@@ -613,7 +613,7 @@ class Glsa:
                @rtype:         Boolean
                @returns:       True if the GLSA was applied, False if not
                """
-               return (self.nr in get_applied_glsas())
+               return (self.nr in get_applied_glsas(self.config))
 
        def inject(self):
                """