mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-29 00:53:09 +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:
parent
ac602d43b7
commit
6f9ee2484c
@ -91,7 +91,7 @@ sub run {
|
|||||||
# If fedora-release-common release starts with a 0, we'll have
|
# If fedora-release-common release starts with a 0, we'll have
|
||||||
# "Prerelease" in varstr
|
# "Prerelease" in varstr
|
||||||
my $reltag = script_output 'rpm -q fedora-release-common --qf "%{RELEASE}\n"';
|
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)";
|
my $version = "$version_id ($varstr)";
|
||||||
# for canned variants, we need to form a different string here by using
|
# for canned variants, we need to form a different string here by using
|
||||||
|
Loading…
Reference in New Issue
Block a user