summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2022-06-21 13:22:34 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2022-06-21 13:27:06 +0200
commit5dfb8dbfc0d49c53b8f81d85533effc7b36895f4 (patch)
tree95dba0500f08ec9d15d75076d0eea82ed98536f4 /bin
parent9bea29cfaf259ea36801e5984de433277b83df49 (diff)
gen-DSA: check for extra cve file only for first dist
If the advisory is for multiple distributions, check for the extra cve file in the first one.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-DSA5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index 346214c2ff..7d43c59bd0 100755
--- a/bin/gen-DSA
+++ b/bin/gen-DSA
@@ -415,7 +415,10 @@ EOF
if [ "$IDMODE" = "DLA" ] || [ "$IDMODE" = "ELA" ]; then
idmode=$(echo "$IDMODE" | tr A-Z a-z)
if [ -n "${DISTS}" ]; then
- extracvefile=`jq -r ".distributions.${DISTS}.maincvefile // empty" data/config.json`
+ # in case the advisory applies to several dists, we only look for an
+ # extra cve file in the first one
+ DIST="`echo ${DISTS} | sed 's/,.*//'`"
+ extracvefile=`jq -r ".distributions.${DIST}.maincvefile // empty" data/config.json`
fi
if [ -d .git ]; then
echo "Made the following changes:"

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