From 6d4a8a9fb7b05e45a3072c6ded56ed5ae609b3ee Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 14 Feb 2024 11:45:37 -0800 Subject: [PATCH] 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 --- lib/utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index c8bf10d6..dfd1cf97 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -609,7 +609,7 @@ sub setup_repos { $udstring =~ s/_/,/; } 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"; # don't download updates if we're in workarounds-only mode or testing a tag