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
commite410692d552ec9f44cc9b9b469673b40c01a2f8d (patch)
tree701cb5e0e3355453fc0721d8c9ad2de436e6adc2 /bin
parentd53465a2ee3f661fa04c043bcd9b0babe64ebdb6 (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