From a8f547f5ef7a14ee8d1b529918f20d796ccad696 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sun, 14 Apr 2024 08:36:50 -0700 Subject: [PATCH] Fix check_prerelease when we don't care I inadvertently broke this in the logic change in the previous commit to this. Signed-off-by: Adam Williamson --- lib/utils.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index 179c8b2b..c3b746fe 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -1476,6 +1476,8 @@ sub check_prerelease { $prerelease = 1 if ($build =~ /\.n\.\d+/ && !get_var("LIVE")); # if it's a respin compose we *MUST NOT* see tags $prerelease = 0 if ($build =~ /Respin/); + # bail if we've decided we don't care + return if ($prerelease > 1); # we *could* go to a console and parse fedora-release-common # to decide if a nightly live image should have tags or not, but # it seems absurd as we're almost reinventing the code that