diff options
author | Raphael Geissert <geissert@debian.org> | 2011-03-05 06:00:25 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2011-03-05 06:00:25 +0000 |
commit | c2513e680cb036dacd9f563f87a7bbfea4c15b23 (patch) | |
tree | f98b33566f14aa756e845c6100308d9f39fafb41 /bin | |
parent | 0ef77e2a49989e4f0e7a941a4fa75b7a8efc0323 (diff) |
nicely handle cases where the DSA revision num is missing
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@16306 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen-DSA | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA index a115c113fd..ad23f9c619 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -48,6 +48,16 @@ VULNERABILITY="$3" 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 |