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
|
||||
# "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
|
||||
|
Loading…
Reference in New Issue
Block a user