diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2022-06-21 13:22:34 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2022-06-21 13:27:06 +0200 |
commit | 5dfb8dbfc0d49c53b8f81d85533effc7b36895f4 (patch) | |
tree | 95dba0500f08ec9d15d75076d0eea82ed98536f4 /bin | |
parent | 9bea29cfaf259ea36801e5984de433277b83df49 (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-x | bin/gen-DSA | 5 |
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:" |