[Git][security-tracker-team/security-tracker][master] gen-DSA: only call remove-cve-dist-tags if there's dist info
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Sun Nov 7 10:06:57 GMT 2021
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
9dde782e by Emilio Pozuelo Monfort at 2021-11-07T11:02:42+01:00
gen-DSA: only call remove-cve-dist-tags if there's dist info
When calling gen-DSA without --save, there's no version/release
information, so skip the call there to avoid a crash. In those
situations, gen-DSA will be called once more when the DSA is
ready with the --save argument, and we'll then remove the
appropriate CVE tags.
Closes #9
- - - - -
1 changed file:
- bin/gen-DSA
Changes:
=====================================
bin/gen-DSA
=====================================
@@ -372,7 +372,9 @@ for dist in $CODENAMES; do
[ -z "$version" ] || DISTS="${DISTS},${dist}"
done
-bin/remove-cve-dist-tags "${DISTS#,}" "${PACKAGE}" ${CVE}
+if [ -n "${DISTS}" ]; then
+ bin/remove-cve-dist-tags "${DISTS#,}" "${PACKAGE}" ${CVE}
+fi
if ! $save; then
cat $tmpf
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/9dde782e0c5a9119026d05a5be1ae2a30bc7fd63
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/9dde782e0c5a9119026d05a5be1ae2a30bc7fd63
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/20211107/5fc49490/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list