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 | 5bcf7f82dcb2dcaedb3abc5a202b72a1c6602517 (patch) | |
tree | c66dd0fd34396a743adc23648d4cc7dc051a4fec /bin/gen-DSA | |
parent | 898a27571dac8a86a80d7449d004d94269bd77f6 (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/gen-DSA')
-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 |