Fix perl/JSON.pm dependency on OpenSUSE and CentOS

This commit is contained in:
Alexander D. Kanevskiy 2017-09-23 16:15:23 +03:00
parent ea8fa964c1
commit 311a53a15e

View File

@ -39,6 +39,11 @@ test_perl-json()
test_libjson-perl
}
test_perl-JSON()
{
test_libjson-perl
}
if [ -f /etc/lsb-release ]; then
DISTRO=$(grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr A-Z a-z)
fi
@ -87,6 +92,9 @@ if ! test_libjson-perl; then
arch)
files_pkg="$files_pkg perl-json"
;;
fedora|centos|rhel|opensuse)
files_pkg="$files_pkg perl-JSON"
;;
*)
files_pkg="$files_pkg libjson-perl"
;;