[Secure-testing-commits] r16306 - bin

Raphael Geissert geissert at alioth.debian.org
Sat Mar 5 06:00:35 UTC 2011


Author: geissert
Date: 2011-03-05 06:00:25 +0000 (Sat, 05 Mar 2011)
New Revision: 16306

Modified:
   bin/gen-DSA
Log:
nicely handle cases where the DSA revision num is missing


Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA	2011-03-05 05:50:15 UTC (rev 16305)
+++ bin/gen-DSA	2011-03-05 06:00:25 UTC (rev 16306)
@@ -48,6 +48,16 @@
 CVE="$(printf '%s' "$4" | tr "[:lower:]" "[:upper:]")"
 BUGNUM="$5"
 
+case "$DSAID" in
+    *-*)
+	:
+    ;;
+    *)
+	echo "warning: missing DSA revision number, assuming 1" >&2
+	DSAID="$DSAID-1"
+    ;;
+esac
+
 if grep -wq "DSA-$DSAID" data/DSA/list; then
     echo "error: DSA-$DSAID has already been used" >&2
     exit 1




More information about the Secure-testing-commits mailing list