[Secure-testing-commits] r35336 - bin

Raphaël Hertzog hertzog at moszumanska.debian.org
Mon Jul 6 06:51:33 UTC 2015


Author: hertzog
Date: 2015-07-06 06:51:33 +0000 (Mon, 06 Jul 2015)
New Revision: 35336

Modified:
   bin/gen-DSA
Log:
Make bin/gen-DLA a bit more foolproof

Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA	2015-07-05 21:10:13 UTC (rev 35335)
+++ bin/gen-DSA	2015-07-06 06:51:33 UTC (rev 35336)
@@ -368,4 +368,19 @@
     sed -rn '/^'"$PACKAGE"'\b/{: next;n;/^\s/b next;d};p' $needed_file > $needed_file.new
     mv $needed_file.new $needed_file
     echo "$IDMODE text written to ./$IDMODE-$DAID"
+    if [ "$IDMODE" = "DLA" ]; then
+	idmode=$(echo "$IDMODE" | tr A-Z a-z)
+	if [ -d .svn ]; then
+	    echo "Made the following changes:"
+	    svn diff data/$IDMODE/list data/$idmode-needed.txt
+	fi
+	warn "you need to commit the changes to data/$IDMODE/list and data/$idmode-needed.txt to actually reserve the $IDMODE-$DAID number and avoid conflicts with others."
+	if [ -d .svn ]; then
+	    echo -n "Do you want to commit them now ? [Yn] "
+	    read reply
+	    if [ "$reply" = "Y" ] || [ "$reply" = "" ] || [ "$reply" = "y" ]; then
+		svn commit -m "Reserve $IDMODE-$DAID for $PACKAGE" data/$IDMODE/list data/$idmode-needed.txt
+	    fi
+	fi
+    fi
 fi




More information about the Secure-testing-commits mailing list