Skip to content

Commit 414c8da

Browse files
authored
Merge pull request #3608 from joolswills/kodi_bullseye
kodi - only add the pippl repos for Raspberry Pi OS (buster) and lower
2 parents c80142c + ede7717 commit 414c8da

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

scriptmodules/ports/kodi.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ function _update_hook_kodi() {
2121
}
2222

2323
function depends_kodi() {
24-
# raspbian
24+
# Raspberry Pi OS
2525
if [[ "$__os_id" = "Raspbian" ]] && isPlatform "rpi"; then
26-
if [[ "$md_mode" == "install" ]]; then
27-
# remove old repository
28-
rm -f /etc/apt/sources.list.d/mene.list
29-
echo "deb http://pipplware.pplware.pt/pipplware/dists/$__os_codename/main/binary/ ./" >/etc/apt/sources.list.d/pipplware.list
30-
download http://pipplware.pplware.pt/pipplware/key.asc - | apt-key add - &>/dev/null
31-
else
32-
rm -f /etc/apt/sources.list.d/pipplware.list
33-
apt-key del 4096R/BAA567BB >/dev/null
26+
if [[ "$__os_debian_ver" -le 10 ]]; then
27+
if [[ "$md_mode" == "install" ]]; then
28+
# remove old repository
29+
rm -f /etc/apt/sources.list.d/mene.list
30+
echo "deb http://pipplware.pplware.pt/pipplware/dists/$__os_codename/main/binary/ ./" >/etc/apt/sources.list.d/pipplware.list
31+
download http://pipplware.pplware.pt/pipplware/key.asc - | apt-key add - &>/dev/null
32+
else
33+
rm -f /etc/apt/sources.list.d/pipplware.list
34+
apt-key del 4096R/BAA567BB >/dev/null
35+
fi
3436
fi
3537
# ubuntu
3638
elif [[ -n "$__os_ubuntu_ver" ]] && isPlatform "x86"; then

0 commit comments

Comments
 (0)