1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00

setup_repos: fix a logic bug

we might be on a non-update waonly path here, we can't bail in
that case.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-02-14 11:45:37 -08:00
parent de4735f6f1
commit 6d4a8a9fb7

View File

@ -609,7 +609,7 @@ sub setup_repos {
$udstring =~ s/_/,/; $udstring =~ s/_/,/;
} }
else { else {
die "Neither ADVISORY_NVRS nor KOJITASK set! Don't know what to do"; die "Neither ADVISORY_NVRS nor KOJITASK set! Don't know what to do" unless ($args{waonly});
} }
my $cmd = "/usr/local/bin/setup_repos.py"; my $cmd = "/usr/local/bin/setup_repos.py";
# don't download updates if we're in workarounds-only mode or testing a tag # don't download updates if we're in workarounds-only mode or testing a tag