File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ function depends_kodi() {
34
34
apt-key del 4096R/BAA567BB > /dev/null
35
35
fi
36
36
fi
37
+ if [[ " $__os_debian_ver " -gt 10 ]]; then
38
+ # install Kodi from the RPI repos directly
39
+ # make sure we're not installing Debian/Raspbian version by pinning the origin of the packages
40
+ local apt_pin_file=" /etc/apt/preferences.d/01-rpie-pin-kodi"
41
+ if [[ ! -f " $apt_pin_file " ]]; then
42
+ echo -e " Package: kodi*\nPin: release o=Raspberry Pi Foundation\nPin-Priority: 900" > " $apt_pin_file "
43
+ fi
44
+ fi
37
45
# ubuntu
38
46
elif [[ -n " $__os_ubuntu_ver " ]] && isPlatform " x86" ; then
39
47
if [[ " $md_mode " == " install" ]]; then
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ function get_os_version() {
190
190
191
191
# 64bit Raspberry Pi OS identifies as Debian, but functions (currently) as Raspbian
192
192
# we will check package sources and set to Raspbian
193
- if isPlatform " aarch64" && apt-cache policy | grep -q " archive.raspberrypi.org" ; then
193
+ if isPlatform " aarch64" && apt-cache policy | grep -qE " archive.raspberrypi.(com| org) " ; then
194
194
__os_id=" Raspbian"
195
195
fi
196
196
You can’t perform that action at this time.
0 commit comments