mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 06:36:41 +00:00
Fix perl/JSON.pm dependency on OpenSUSE and CentOS
This commit is contained in:
parent
ea8fa964c1
commit
311a53a15e
@ -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