summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorgenone <genone@gentoo.org>2004-12-08 10:40:53 +0000
committergenone <genone@gentoo.org>2004-12-08 10:40:53 +0000
commit5f87388fb7540c6115068f5ff475c9a14f0d0a7c (patch)
tree030d585259ad91fc30f7c74e03c8fc01998440d2 /trunk/src
parent2f296d8ba4086481933cdf88f12fd7a159f11499 (diff)
downloadgentoolkit-5f87388fb7540c6115068f5ff475c9a14f0d0a7c.tar.gz
added argument check
svn path=/; revision=179
Diffstat (limited to 'trunk/src')
-rw-r--r--trunk/src/glsa-check/glsa-check7
1 files changed, 7 insertions, 0 deletions
diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check
index 4d682f0..751a658 100644
--- a/trunk/src/glsa-check/glsa-check
+++ b/trunk/src/glsa-check/glsa-check
@@ -135,6 +135,13 @@ if "new" in params:
if "all" in params:
glsalist = completelist
params.remove("all")
+
+# remove invalid parameters
+for p in params[:]:
+ if not (p in completelist or os.path.exists(p)):
+ print "(removing %s from parameter list as it isn't a valid GLSA specification)" % p
+ params.remove(p)
+
glsalist.extend([g for g in params if g not in glsalist])
# list short information for given or new GLSA