scripts/sphinx-pre-install: fix script for RHEL/CentOS

[ Upstream commit b308467c91 ]

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>
This commit is contained in:
Mauro Carvalho Chehab 2019-07-13 08:50:24 -03:00 committed by Greg Kroah-Hartman
parent 36b6458d85
commit 056af94d6e
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}