__version__ = open("/usr/share/gentoolkit/VERSION").read().strip()
optionmap = [
-["-l", "--list", "list all unapplied GLSA"],
-["-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"],
-["-f", "--fix", "try to auto-apply this GLSA (experimental)"],
+["-l", "--list", "list the GLSAs"],
+["-d", "--dump", "--print", "show all information about the GLSAs"],
+["-t", "--test", "test if this system is affected by the GLSAs"],
+["-p", "--pretend", "show the necessary steps to apply the GLSAs"],
+["-f", "--fix", "try to auto-apply the GLSAs (experimental)"],
["-i", "--inject", "inject the given GLSA into the glsa_injected file"],
["-n", "--nocolor", "disable colors (option)"],
-["-e", "--emergelike", "do not use a least-change algorithm (option)"],
+["-e", "--emergelike", "upgrade to latest version (not least-change, option)"],
["-h", "--help", "show this help message"],
["-V", "--version", "some information about this tool"],
["-v", "--verbose", "print more information (option)"],
sys.stderr.write("(specify \"all\" as parameter)\n\n")
mode = "HELP"
elif len(params) <= 0 and mode == "list":
- params.append("new")
+ params.append("affected")
# show help message
if mode == "help" or mode == "HELP":
msg += "\t" + o + "\n"
msg += "\nglsa-list can contain an arbitrary number of GLSA ids, \n"
msg += "filenames containing GLSAs or the special identifiers \n"
- msg += "'all', 'new' and 'affected'\n"
+ msg += "'all' and 'affected'\n"
if mode == "help":
sys.stdout.write(msg)
sys.exit(0)
glsalist = []
if "new" in params:
- glsalist = todolist
params.remove("new")
+ sys.stderr.write("Warning: The 'new' glsa-list target has been removed, using 'affected'.\n")
+ params.append("affected")
if "all" in params:
glsalist = completelist
params.remove("all")
+
if "affected" in params:
- # replaced completelist with todolist on request of wschlich
for x in todolist:
try:
myglsa = Glsa(x, glsaconfig)
-.TH "glsa-check" "1" "0.6" "Marius Mauch" "gentoolkit"
+.TH "glsa-check" "1" "0.3" "Marius Mauch" "gentoolkit"
.SH "NAME"
.LP
glsa\-check \- Gentoo: Tool to locally monitor and manage GLSAs
.LP
glsa\-check <\fIoption\fP> [\fIglsa\-list\fP]
-[\fIglsa\-list\fR] can contain an arbitrary number of GLSA ids, filenames containing GLSAs or the special identifiers 'all', 'new' and 'affected'
+[\fIglsa\-list\fR] can contain an arbitrary number of GLSA ids, filenames containing GLSAs or the special identifiers 'all' and 'affected'
.SH "DESCRIPTION"
.LP
This tool is used to locally monitor and manage Gentoo Linux Security Advisories.
.LP
.TP
.B \-l, \-\-list
-list all unapplied GLSA
+list the a summary for all GLSAs in glsa-list and whether they affect the system
.TP
.B \-d, \-\-dump, \-\-print
-show all information about the given GLSA
+show all information about the GLSAs in glsa-list
.TP
.B \-t, \-\-test
-test if this system is affected by the given GLSA
+test if this system is affected by the GLSAs in glsa-list and output the GLSA IDs
.TP
.B \-p, \-\-pretend
-show the necessary commands to apply this GLSA
+show the necessary steps to apply the GLSAs in glsa-list
.TP
.B \-f, \-\-fix
-try to auto\-apply this GLSA (experimental)
+try to auto\-apply the GLSAs in in glsa-list using emerge. This will only upgrade packages to later version, but not remove packages when no upgrade path exists (experimental)
.TP
.B \-i, \-\-inject
inject the given GLSA into the glsa_injected file