summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2014-07-31 07:51:56 +0000
committerDidier Raboud <odyx@debian.org>2014-07-31 07:51:56 +0000
commita5fc528ba061d95f507a001724fb82bd0c287245 (patch)
tree6ce33f3952ca7be2e6844fab5fce2cb35c9e7cbc
parentf423f6998e63cf747ee4f033c470327381f027d2 (diff)
Adapt bin/gen-DLA to let DLA's always read as DLA-####-#
- Amend DLA subject to have the first dash - Patch bin/gen-DLA to zero-pad the DLAid to 4 digits git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28008 e39458fd-73e7-0310-bf30-c45bca0a0e42
-rwxr-xr-xbin/gen-DLA4
-rw-r--r--doc/DLA.template2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/gen-DLA b/bin/gen-DLA
index a2f57f09c9..1284847cc4 100755
--- a/bin/gen-DLA
+++ b/bin/gen-DLA
@@ -222,10 +222,10 @@ fi
if [ -z "$DLAID" ]; then
latest_dla="$(sed -nr '/DLA-[0-9]+-1/{s/^.+DLA-[0]*([0-9]+).*$/\1/;p;q}' data/DLA/list)"
- dla=$(($latest_dla+1))
+ dla=$(printf '%04d' $(($latest_dla+1)))
c=0
while dla_exists "$dla-1"; do
- dla=$(($dla+1))
+ dla=$(printf '%04d' $(($dla+1)))
c=$(($c+1))
if [ $c -eq 10 ]; then
error "unable to find an unused DLA id after $c attempts" >&2
diff --git a/doc/DLA.template b/doc/DLA.template
index 11199f25d7..07a15aa6dc 100644
--- a/doc/DLA.template
+++ b/doc/DLA.template
@@ -1,6 +1,6 @@
From: $DEBFULLNAME <$DEBEMAIL>
To: debian-lts-announce@lists.debian.org
-Subject: [DLA $DLAID] $PACKAGE security update
+Subject: [DLA-$DLAID] $PACKAGE security update
Package : $PACKAGE
Version : $squeeze_VERSION

© 2014-2024 Faster IT GmbH | imprint | privacy policy