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 # 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