提交 bcdc936a 编写于 作者: M Mauro Carvalho Chehab 提交者: Xie XiuQi

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

[ 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: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 cdca8cfb
...@@ -301,7 +301,7 @@ sub give_redhat_hints() ...@@ -301,7 +301,7 @@ sub give_redhat_hints()
# #
# Checks valid for RHEL/CentOS version 7.x. # Checks valid for RHEL/CentOS version 7.x.
# #
if (! $system_release =~ /Fedora/) { if (!($system_release =~ /Fedora/)) {
$map{"virtualenv"} = "python-virtualenv"; $map{"virtualenv"} = "python-virtualenv";
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册