[Git][security-tracker-team/security-tracker][master] gen-DSA: check for extra cve file only for first dist
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Tue Jun 21 12:29:05 BST 2022
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
5dfb8dbf by Emilio Pozuelo Monfort at 2022-06-21T13:27:06+02:00
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.
- - - - -
1 changed file:
- bin/gen-DSA
Changes:
=====================================
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:"
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/5dfb8dbfc0d49c53b8f81d85533effc7b36895f4
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/5dfb8dbfc0d49c53b8f81d85533effc7b36895f4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20220621/7e4dd2c0/attachment.htm>
More information about the debian-security-tracker-commits
mailing list