[Secure-testing-commits] r18472 - bin

Raphael Geissert geissert at alioth.debian.org
Sat Feb 18 19:32:56 UTC 2012


Author: geissert
Date: 2012-02-18 19:32:56 +0000 (Sat, 18 Feb 2012)
New Revision: 18472

Modified:
   bin/gen-DSA
Log:
Eat the "DSA-" prefix if included


Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA	2012-02-18 19:28:42 UTC (rev 18471)
+++ bin/gen-DSA	2012-02-18 19:32:56 UTC (rev 18472)
@@ -45,8 +45,8 @@
 fi
 
 DSAID=
-if printf '%s' "$1" | grep -Eq '^[0-9]+(-[0-9]+|)$'; then
-    DSAID="$1"
+if printf '%s' "$1" | grep -Eq '^(DSA-|)[0-9]+(-[0-9]+|)$'; then
+    DSAID="${1#DSA-}"
     shift
 fi
 




More information about the Secure-testing-commits mailing list