From fead78408748afa28a3ab2c9ef740a09560fe8a6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 13 May 2020 10:55:09 -0700 Subject: [PATCH] Except IoT from the 'no 0.x -release in candidate compose' rule IoT does nightly Branched and Rawhide composes that are built as RC candidates, for some reason. So let's except it from this check. Signed-off-by: Adam Williamson --- tests/os_release.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/os_release.pm b/tests/os_release.pm index ab1a7b3d..21718961 100644 --- a/tests/os_release.pm +++ b/tests/os_release.pm @@ -96,9 +96,9 @@ sub run { # ...however, we shouldn't just wave this through if we're # an RC candidate or update compose, those should never be # done with a 0.x fedora-release-common. so let's blow up - # here if so + # here if so. unless it's IoT, because IoT is weird my $label = get_var("LABEL"); - if ($label =~ /^(RC|Update)-/) { + if ($label =~ /^(RC|Update)-/ && $subvariant ne "IoT") { die "RC candidate or update compose should not have 0.x versioned fedora-release!"; } }