diff options
author | Raphael Geissert <geissert@debian.org> | 2012-09-15 00:38:44 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2012-09-15 00:38:44 +0000 |
commit | 45a1fe6e7b2bcd4540b1370a5a47548da56946e5 (patch) | |
tree | b8f228ec3176996dc4ed5151ac0b6985edd4cc53 /bin/gen-DSA | |
parent | 33a70c1a46d9a39ecf50cbf14c75285ad8c9ee7f (diff) |
Adjust "this problem has" to "these problems have" when fixing >1 issues
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@20168 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA index ab2f805feb..565f01f8c0 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -109,6 +109,7 @@ PACKAGE="$(tolower "$1")" VULNERABILITY="$2" CVE="$(toupper "$3")" BUGNUM="${4#\#}" +REFERENCES=0 CVE="$(split_n_sort "$CVE")" cve_spacing= @@ -120,6 +121,7 @@ sed_cmd='s/((CVE-[0-9-]+[ ]+){4})(.+)$/\1\\n'"$cve_spacing"'\3/g;P;D' CVE_LIST="$(printf '%s' "$CVE" | sed -r "$sed_cmd")" for id in $CVE; do + REFERENCES=$(($REFERENCES+1)) grep -wq "^$id" data/CVE/list || { warn "'$id' is not known" >&2 } @@ -178,6 +180,10 @@ if [ "$VULNERABILITY" = regression ]; then sed -ri '/^Subject:/s/security update$/regression update/' $tmpf fi +if [ $REFERENCES -gt 1 ]; then + sed -ri 's/this problem has/these problems have/' $tmpf +fi + name_length=${#DEBFULLNAME} spacing=$((24-$name_length)) SPACEDDEBFULLNAME="$DEBFULLNAME" |