From 9dde782e0c5a9119026d05a5be1ae2a30bc7fd63 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Sun, 7 Nov 2021 11:02:42 +0100 Subject: 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 --- bin/gen-DSA | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3