[Secure-testing-commits] r20168 - bin
Raphael Geissert
geissert at alioth.debian.org
Sat Sep 15 00:38:44 UTC 2012
Author: geissert
Date: 2012-09-15 00:38:44 +0000 (Sat, 15 Sep 2012)
New Revision: 20168
Modified:
bin/gen-DSA
Log:
Adjust "this problem has" to "these problems have" when fixing >1 issues
Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA 2012-09-15 00:27:05 UTC (rev 20167)
+++ bin/gen-DSA 2012-09-15 00:38:44 UTC (rev 20168)
@@ -109,6 +109,7 @@
VULNERABILITY="$2"
CVE="$(toupper "$3")"
BUGNUM="${4#\#}"
+REFERENCES=0
CVE="$(split_n_sort "$CVE")"
cve_spacing=
@@ -120,6 +121,7 @@
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 @@
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"
More information about the Secure-testing-commits
mailing list