From b19f1d49fff3a1c1b911deb5ef012da216f2e934 Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Thu, 1 Apr 2021 13:25:51 +0200 Subject: [PATCH 1/2] avoid patch if already done --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index edc875a..6ee1ab4 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -35,7 +35,7 @@ myynh_install() { # install essential packages ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy==3.1.1 - patch -u $final_path/env/lib/python$python_version/site-packages/mopidy/__main__.py -i ../sources/patches/__main__.patch + patch -u $final_path/env/lib/python$python_version/site-packages/mopidy/__main__.py -i ../sources/patches/__main__.patch --forward ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-local==3.2.1 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-MusicBox-Webclient==3.1.0 From dbec3d54f84894cab2a6af8136bf8a0e7ba7be93 Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Thu, 1 Apr 2021 22:12:06 +0200 Subject: [PATCH 2/2] Update _common.sh --- scripts/_common.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 6ee1ab4..31b42dd 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -51,15 +51,6 @@ myynh_install() { ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Podcast-iTunes==3.0.0 # ynh_script_progression --message="Installing Mopidy-SoundCloud..." --weight=6 ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-SoundCloud -# ynh_script_progression --message="Installing Mopidy-Spotify..." --time --weight=1 -# ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Spotify Spotify Lib currently not available!! - -# if [ -n "$(uname -m | grep arm)" ]; # check CPU (raspberry is armxx) -# then -# ynh_script_progression --message="Installing Mopidy-Raspberry-GPIO..." --time --weight=1 -# ynh_exec_as $app $final_path/env/bin/python3 -m pip install --no-cache-dir Mopidy-Raspberry-GPIO -# fi - # set +o nounset # source "${final_path}/env/bin/deactivate"