From 18488b0f0e7145bafe4b53ed2e11f1a5a66b64b1 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 24 Sep 2021 13:28:35 +0200 Subject: [PATCH] update_retroplayer-addons: support tar.gz archive links game addons have (mostly?) switched from zip to tar.gz links, add support for extracting the version info from these as well to fix game addon updates. Signed-off-by: Matthias Reichl --- tools/mkpkg/update_retroplayer-addons | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/mkpkg/update_retroplayer-addons b/tools/mkpkg/update_retroplayer-addons index 428f08c273..463338ef45 100755 --- a/tools/mkpkg/update_retroplayer-addons +++ b/tools/mkpkg/update_retroplayer-addons @@ -160,6 +160,9 @@ for addon in ${ADDONS_DIR}/*.*/ ; do if [[ "$VERSION_INFO" =~ .zip$ ]] ; then # version referenced by githash RETRO_NEW_VERSION=$(sed -e 's|^.*/archive/||' -e 's|\.zip$||' "${RETRO_VERSION_FILE}") + elif [[ "$VERSION_INFO" =~ .tar.gz$ ]] ; then + # version referenced by githash + RETRO_NEW_VERSION=$(sed -e 's|^.*/archive/||' -e 's|\.tar.gz$||' "${RETRO_VERSION_FILE}") else msg_warn "unmanaged version in kodi package: ${VERSION_INFO}" # unmanaged version, repo plus branch