Skip to content

Commit

Permalink
scripts/sphinx-pre-install: fix script for RHEL/CentOS
Browse files Browse the repository at this point in the history
[ Upstream commit b308467c916aa7acc5069802ab76a9f657434701 ]

There's a missing parenthesis at the script, with causes it to
fail to detect non-Fedora releases (e. g. RHEL/CentOS).

Tested with Centos 7.6.1810.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
mchehab authored and gregkh committed Aug 16, 2019
1 parent 628272f commit ec03a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sphinx-pre-install
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ sub give_redhat_hints()
#
# Checks valid for RHEL/CentOS version 7.x.
#
if (! $system_release =~ /Fedora/) {
if (!($system_release =~ /Fedora/)) {
$map{"virtualenv"} = "python-virtualenv";
}

Expand Down

0 comments on commit ec03a55

Please sign in to comment.