diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2021-11-07 11:02:42 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2021-11-07 11:02:42 +0100 |
commit | 9dde782e0c5a9119026d05a5be1ae2a30bc7fd63 (patch) | |
tree | 5037b64ff8e66d18c5a21133fa6b4fd4e07225e8 /bin/gen-DSA | |
parent | a032dc0d8ab0bf8f8d8c1e85fe49d9f512316afa (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/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 4 |
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 |