Merge pull request #2032 from kad/perl-json

Fix perl/JSON.pm dependency on OpenSUSE and CentOS
This commit is contained in:
MilhouseVH 2017-10-07 11:52:16 +01:00 committed by GitHub
commit e21ac23dcb

View File

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