[Secure-testing-commits] r27895 - bin

Raphael Geissert geissert at moszumanska.debian.org
Tue Jul 22 20:29:54 UTC 2014


Author: geissert
Date: 2014-07-22 20:29:53 +0000 (Tue, 22 Jul 2014)
New Revision: 27895

Modified:
   bin/gen-DLA
   bin/gen-DSA
Log:
handle those useless 0s in front of the DLA ids


Modified: bin/gen-DLA
===================================================================
--- bin/gen-DLA	2014-07-22 20:26:58 UTC (rev 27894)
+++ bin/gen-DLA	2014-07-22 20:29:53 UTC (rev 27895)
@@ -221,7 +221,7 @@
 fi
 
 if [ -z "$DLAID" ]; then
-    latest_dla="$(sed -nr '/DLA-[0-9]+-1/{s/^.+DLA-([0-9]+).*$/\1/;p;q}' data/DLA/list)"
+    latest_dla="$(sed -nr '/DLA-[0-9]+-1/{s/^.+DLA-[0]*([0-9]+).*$/\1/;p;q}' data/DLA/list)"
     dla=$(($latest_dla+1))
     c=0
     while dla_exists "$dla-1"; do

Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA	2014-07-22 20:26:58 UTC (rev 27894)
+++ bin/gen-DSA	2014-07-22 20:29:53 UTC (rev 27895)
@@ -226,7 +226,7 @@
 fi
 
 if [ -z "$DSAID" ]; then
-    latest_dsa="$(sed -nr '/DSA-[0-9]+-1/{s/^.+DSA-([0-9]+).*$/\1/;p;q}' data/DSA/list)"
+    latest_dsa="$(sed -nr '/DSA-[0-9]+-1/{s/^.+DSA-[0]*([0-9]+).*$/\1/;p;q}' data/DSA/list)"
     dsa=$(($latest_dsa+1))
     c=0
     while dsa_exists "$dsa-1"; do




More information about the Secure-testing-commits mailing list