summaryrefslogtreecommitdiffstats
path: root/bin/gen-DSA
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2013-02-19 19:27:42 +0000
committerRaphael Geissert <geissert@debian.org>2013-02-19 19:27:42 +0000
commit6a9f38955305f44644c613ba4d6a56d49d04373d (patch)
tree89a4a9dd308dab92ffa464227894a3ef939c7c0d /bin/gen-DSA
parent041fbeb341977611c5e4ff520a08f34c8c725b78 (diff)
When passing multiple CVE ids, generate a list of them
The generated CVE listing is more or less already followed by almost everybody except fw, who's style is slightly different (no empty line after the id and tabs instead of blanks.) git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@21342 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-xbin/gen-DSA16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index 48e7771b25..487b5fd0e7 100755
--- a/bin/gen-DSA
+++ b/bin/gen-DSA
@@ -152,6 +152,7 @@ VULNERABILITY="$(cleanup_vulnerability "$2")"
CVE="$(toupper "$3")"
BUGNUM="${4#\#}"
REFERENCES=0
+TEXT=
CVE="$(split_n_sort "$CVE")"
cve_spacing=
@@ -167,8 +168,22 @@ for id in $CVE; do
grep -wq "^$id" data/CVE/list || {
warn "'$id' is not known" >&2
}
+
+ TEXT="$TEXT\n\n$id\n\n Description"
done
+if [ $REFERENCES -eq 1 ]; then
+ TEXT=
+fi
+
+if [ -n "$TEXT" ]; then
+ TEXT="Brief introduction $TEXT"
+
+ if ! $save; then
+ TEXT="The CVE ids will be listed here when --save'ing"
+ fi
+fi
+
case "$DSAID" in
*-*|'')
:
@@ -267,6 +282,7 @@ setvar STABLE
setvar TESTING
setvar SPACEDDATE
setvar DATE
+setvar TEXT "${TEXT:-DSA text goes here}"
for dist in $OLDSTABLE $STABLE $TESTING UNSTABLE; do
version="$(eval 'printf "%s" "$'"$dist"_VERSION'"')"

© 2014-2024 Faster IT GmbH | imprint | privacy policy