From: vapier Date: Tue, 20 Jan 2009 02:57:26 +0000 (-0000) Subject: tighten up output X-Git-Tag: gentoolkit-0.2.4.3^2~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e568485ff2e33f0d34c7706d166ee1f8deaa3fc9;p=gentoolkit.git tighten up output svn path=/; revision=540 --- diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check index 98e5708..7d3931a 100755 --- a/trunk/src/glsa-check/glsa-check +++ b/trunk/src/glsa-check/glsa-check @@ -82,10 +82,10 @@ try: # sanity checking if len(args) <= 0: sys.stderr.write("no option given: what should I do ?\n") - mode="help" + mode = "HELP" elif len(args) > 1: sys.stderr.write("please use only one command per call\n") - mode = "help" + mode = "HELP" else: # in what mode are we ? args = args[0] @@ -96,32 +96,37 @@ try: except GetoptError, e: sys.stderr.write("unknown option given: ") sys.stderr.write(str(e)+"\n") - mode = "help" + mode = "HELP" # we need a set of glsa for most operation modes if len(params) <= 0 and mode in ["fix", "test", "pretend", "dump", "inject", "mail"]: sys.stderr.write("\nno GLSA given, so we'll do nothing for now. \n") sys.stderr.write("If you want to run on all GLSA please tell me so \n") sys.stderr.write("(specify \"all\" as parameter)\n\n") - mode = "help" + mode = "HELP" elif len(params) <= 0 and mode == "list": params.append("new") # show help message -if mode == "help": - sys.stderr.write("\nSyntax: glsa-check