]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
scripts/sphinx-pre-install: fix script for RHEL/CentOS
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 13 Jul 2019 11:50:24 +0000 (08:50 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:10:59 +0000 (10:10 +0200)
[ 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>
scripts/sphinx-pre-install

index 9be208db88d3a8647fb7c01b8ae785f33e673510..778f3ae918775acab408a1835940bc3981e16432 100755 (executable)
@@ -364,7 +364,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";
        }