+2006-01-24 Marius Mauch <genone@gentoo.org>
+ * glsa-check: Use vbd information in verbose list mode (patch by solar)
+
2006-01-18 Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Add capability to check libtool .la files for
non-existant references.
#!/usr/bin/python
-# $Header$
+# $Header: $
# This program is licensed under the GPL, version 2
import os,string,sys
__program__ = "glsa-check"
__author__ = "Marius Mauch <genone@gentoo.org>"
-__version__ = "0.6"
+__version__ = "0.6.1"
optionmap = [
["-l", "--list", "list all unapplied GLSA"],
else:
status = "[U]"
color = green
- sys.stdout.write(color(myglsa.nr) + " " + color(status) + " " + myglsa.title + " (")
- for pkg in myglsa.packages.keys()[:3]:
- sys.stdout.write(" " + pkg + " ")
- if len(myglsa.packages) > 3:
- sys.stdout.write("... ")
+ sys.stdout.write(color(myglsa.nr) + " " + color(status) + " " + myglsa.title + " (")
+ if not verbose:
+ for pkg in myglsa.packages.keys()[:3]:
+ sys.stdout.write(" " + pkg + " ")
+ if len(myglsa.packages) > 3:
+ sys.stdout.write("... ")
+ else:
+ for pkg in myglsa.packages.keys():
+ mylist = portage.db["/"]["vartree"].dbapi.match(portage.dep_getkey(pkg))
+ if len(mylist) > 0:
+ pkg = color(" ".join(mylist))
+ sys.stdout.write(" " + pkg + " ")
+
sys.stdout.write(")")
if list_cve:
sys.stdout.write(" "+(",".join([r[:13] for r in myglsa.references if r[:4] == "CAN-"])))