1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-04-14 08:36:50 -07:00
parent 86c975e49a
commit a8f547f5ef

View File

@ -1476,6 +1476,8 @@ sub check_prerelease {
$prerelease = 1 if ($build =~ /\.n\.\d+/ && !get_var("LIVE")); $prerelease = 1 if ($build =~ /\.n\.\d+/ && !get_var("LIVE"));
# if it's a respin compose we *MUST NOT* see tags # if it's a respin compose we *MUST NOT* see tags
$prerelease = 0 if ($build =~ /Respin/); $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 # we *could* go to a console and parse fedora-release-common
# to decide if a nightly live image should have tags or not, but # to decide if a nightly live image should have tags or not, but
# it seems absurd as we're almost reinventing the code that # it seems absurd as we're almost reinventing the code that