Skip to content

Commit c4682c6

Browse files
authored
Merge pull request #3853 from cmitu/kodi
kodi: fix installation on Bookworm/Bullseye
2 parents 03b55aa + 470fef7 commit c4682c6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scriptmodules/ports/kodi.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ function depends_kodi() {
3434
apt-key del 4096R/BAA567BB >/dev/null
3535
fi
3636
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
3745
# ubuntu
3846
elif [[ -n "$__os_ubuntu_ver" ]] && isPlatform "x86"; then
3947
if [[ "$md_mode" == "install" ]]; then

scriptmodules/system.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function get_os_version() {
190190

191191
# 64bit Raspberry Pi OS identifies as Debian, but functions (currently) as Raspbian
192192
# 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
194194
__os_id="Raspbian"
195195
fi
196196

0 commit comments

Comments
 (0)