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

Fix prerelease check in os_release.pm

Whoops, bracket in wrong place...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-05-11 15:41:21 -07:00
parent ac602d43b7
commit 6f9ee2484c

View File

@ -91,7 +91,7 @@ sub run {
# If fedora-release-common release starts with a 0, we'll have
# "Prerelease" in varstr
my $reltag = script_output 'rpm -q fedora-release-common --qf "%{RELEASE}\n"';
$varstr .= " Prerelease" if (index($reltag, "0." == 0));
$varstr .= " Prerelease" if (index($reltag, "0.") == 0);
my $version = "$version_id ($varstr)";
# for canned variants, we need to form a different string here by using