mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
Merge pull request #2032 from kad/perl-json
Fix perl/JSON.pm dependency on OpenSUSE and CentOS
This commit is contained in:
commit
e21ac23dcb
@ -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"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user