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 | eea2ccb8ebca825ac1c78b93c4e368f8a825302a (patch) | |
tree | dbe32740b729df4e07238cbfc3f731a0b8c0e212 /bin/gen-DSA | |
parent | 172d24130ecd2cd8c51d80f1160238f5d17ab085 (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" |