summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2021-11-07 11:02:42 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2021-11-07 11:02:42 +0100
commit5a7d0f28893407ddf7393d1acb1d7c48aa20e409 (patch)
tree9841a46727588189d82ff2aa3249524f0fd9e5ff /bin
parent16436549c62a864e91ccf7a9966f68b85716f921 (diff)
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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-DSA4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index 0fd013d1e4..f909ca504d 100755
--- a/bin/gen-DSA
+++ b/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

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