]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 17 Sep 2019 16:02:18 +0000 (18:02 +0200)
BugLink: https://bugs.launchpad.net/bugs/1840520
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
scripts/sphinx-pre-install

index 067459760a7b048d4b53c28ac476189ac5884c21..3524dbc313163e70d05a5bda0b0a31d41668502d 100755 (executable)
@@ -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";
        }