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.


_______________________________________________
debian-security-tracker-commits mailing list
debian-security-tracker-commits@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-security-tracker-commits

Reply via email to