diff options
| author | genone <genone@gentoo.org> | 2007-02-26 18:24:02 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2007-02-26 18:24:02 +0000 |
| commit | 0adff1092fa5f92ec43dd8038be5a8f820904d5a (patch) | |
| tree | 29a93945a69701e4c19b6cb4b53e011ea2715d1c | |
| parent | 62ddc5fd9836a1adfc0427316104450b7ad0aad0 (diff) | |
| download | gentoolkit-0adff1092fa5f92ec43dd8038be5a8f820904d5a.tar.gz | |
Display access info in verbose list mode
svn path=/; revision=349
| -rw-r--r-- | trunk/ChangeLog | 3 | ||||
| -rw-r--r-- | trunk/src/glsa-check/glsa-check | 10 |
2 files changed, 11 insertions, 2 deletions
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 <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) 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 <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 + " ") |
