[Secure-testing-commits] r19269 - bin

Raphael Geissert geissert at alioth.debian.org
Fri May 18 01:22:54 UTC 2012


Author: geissert
Date: 2012-05-18 01:22:53 +0000 (Fri, 18 May 2012)
New Revision: 19269

Modified:
   bin/gen-DSA
Log:
check that the cve ids do exist in the list


Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA	2012-05-18 00:16:34 UTC (rev 19268)
+++ bin/gen-DSA	2012-05-18 01:22:53 UTC (rev 19269)
@@ -77,6 +77,12 @@
 sed_cmd='s/((CVE-[0-9-]+[ ]+){4})(.+)$/\1\\n'"$cve_spacing"'\3/g;P;D'
 CVE_LIST="$(printf '%s' "$CVE" | sed -r "$sed_cmd")"
 
+for id in $CVE; do
+    grep -wq "^$id" data/CVE/list || {
+	echo "warning: '$id' is not known" >&2
+    }
+done
+
 case "$DSAID" in
     *-*|'')
 	:




More information about the Secure-testing-commits mailing list