diff -Nru A/gentoolkit-0.2.0_pre8/src/glsa-check/glsa-check B/gentoolkit-0.2.0_pre8/src/glsa-check/glsa-check --- A/gentoolkit-0.2.0_pre8/src/glsa-check/glsa-check 2004-03-31 15:22:41.000000000 +0900 +++ B/gentoolkit-0.2.0_pre8/src/glsa-check/glsa-check 2004-06-16 00:51:53.421578490 +0900 @@ -6,6 +6,8 @@ import os,string,sys sys.path.insert(0, "/usr/lib/gentoolkit/pym") from getopt import getopt,GetoptError +sys.path.append("/usr/lib/portage/pym") +from output import * __program__ = "glsa-check" __author__ = "Marius Mauch " @@ -13,6 +15,7 @@ optionmap = [ ["-l", "--list", "list all unapplied GLSA"], +["-s", "--show", "show which GLSA might need to be applied"], ["-d", "--dump", "--print", "show all information about the given GLSA"], ["-t", "--test", "test if this system is affected by the given GLSA"], ["-p", "--pretend", "show the necessary commands to apply this GLSA"], @@ -34,8 +37,8 @@ args = [] params = [] try: - args, params = getopt(sys.argv[1:], "dplfchivt", \ - ["dump", "print", "list", "pretend", "fix", "inject", "help", "info", "version", "test"]) + args, params = getopt(sys.argv[1:], "dplfchivts", \ + ["dump", "print", "list", "pretend", "fix", "inject", "help", "info", "version", "test", "show"]) args = [a for a,b in args] # sanity checking @@ -65,6 +68,8 @@ mode = "help" elif len(params) <= 0 and mode == "list": params.append("new") +elif len(params) <= 0 and mode == "show": + params.append("new") # show help message if mode == "help": @@ -76,7 +81,8 @@ for o in m[2:-1]: print "\t" + o print - print "glsa-list can contain an arbitrary number of GLSA ids, " + print "