From: genone Date: Mon, 26 Feb 2007 18:24:02 +0000 (-0000) Subject: Display access info in verbose list mode X-Git-Tag: gentoolkit-0.2.4.3~164 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0adff1092fa5f92ec43dd8038be5a8f820904d5a;p=gentoolkit.git Display access info in verbose list mode svn path=/; revision=349 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 6335ad2..2880578 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,6 @@ +2007-02-26 Marius Mauch + * glsa-check: Display access information in verbose list mode (bug 168482) + 2007-01-10 Paul Varner * epkgmove: removed epkgmove command due to popular demand. (Bug 161360) diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check index 756aa9a..e595641 100644 --- a/trunk/src/glsa-check/glsa-check +++ b/trunk/src/glsa-check/glsa-check @@ -11,7 +11,7 @@ from getopt import getopt,GetoptError __program__ = "glsa-check" __author__ = "Marius Mauch " -__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 + " ")