Display access info in verbose list mode
authorgenone <genone@gentoo.org>
Mon, 26 Feb 2007 18:24:02 +0000 (18:24 -0000)
committergenone <genone@gentoo.org>
Mon, 26 Feb 2007 18:24:02 +0000 (18:24 -0000)
svn path=/; revision=349

trunk/ChangeLog
trunk/src/glsa-check/glsa-check

index 6335ad2c7418bfdb84d7a9e91aa071e2c7059b96..2880578832986fc64e28d8bc98e287590229a53b 100644 (file)
@@ -1,3 +1,6 @@
+2007-02-26 Marius Mauch <genone@gentoo.org>
+       * glsa-check: Display access information in verbose list mode (bug 168482)
+
 2007-01-10 Paul Varner <fuzzyray@gentoo.org>
        * epkgmove: removed epkgmove command due to popular demand. (Bug
        161360)
index 756aa9a511d682b526618de51b91dbcdb60c6aeb..e5956415c901f263d8427ddee4c8f834d744dcce 100644 (file)
@@ -11,7 +11,7 @@ from getopt import getopt,GetoptError
 
 __program__ = "glsa-check"
 __author__ = "Marius Mauch <genone@gentoo.org>"
-__version__ = "0.7"
+__version__ = "0.8"
 
 optionmap = [
 ["-l", "--list", "list all unapplied GLSA"],
@@ -183,7 +183,13 @@ def summarylist(myglsalist, fd1=sys.stdout, fd2=sys.stderr):
                else:
                        status = "[U]"
                        color = green
-               fd1.write(color(myglsa.nr) + " " + color(status) + " " + myglsa.title + " (")
+
+               if verbose:
+                       access = ("[%-8s] " % myglsa.access)
+               else:
+                       access=""
+
+               fd1.write(color(myglsa.nr) + " " + color(status) + " " + color(access) + myglsa.title + " (")
                if not verbose:
                        for pkg in myglsa.packages.keys()[:3]:
                                fd1.write(" " + pkg + " ")