Skip to content

Commit

Permalink
update_retroplayer-addons: support tar.gz archive links
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
HiassofT authored and Portisch committed Sep 24, 2021
1 parent 32adf7f commit 18488b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/mkpkg/update_retroplayer-addons
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18488b0

Please sign in to comment.