From e37f58ebba3fca041d99ba0ef11c58319b106f4d Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Sun, 28 Sep 2008 18:58:29 +0000 Subject: [PATCH] sort summarylist output (patch by Robert Buchholz ) svn path=/main/trunk/; revision=11591 --- bin/glsa-check | 1 + pym/portage/glsa.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/glsa-check b/bin/glsa-check index 82fb5e49d..f789af1ec 100644 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -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) diff --git a/pym/portage/glsa.py b/pym/portage/glsa.py index e44c279b1..f0d99c8c1 100644 --- a/pym/portage/glsa.py +++ b/pym/portage/glsa.py @@ -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): """ -- 2.26.2