From 673f7d28a280a0a8c3b509f767e549e6e4003f9d Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Thu, 28 Feb 2019 22:37:20 +0100 Subject: [PATCH] update_retroplayer-addons: don't bump PKG_REV on game addon bumps As we are using tags, and the addon version should match the tag version bumping PKG_REV on kodi game addon updates isn't needed. As with update_binary-addons bumping PKG_REV may be wanted as we are switching from HEAD to tags and can be enabled by setting the PKG_BUMP_REV environment variable. PKG_REV will also be bumped the script is run with "-f" as before. Signed-off-by: Matthias Reichl --- tools/mkpkg/update_retroplayer-addons | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/mkpkg/update_retroplayer-addons b/tools/mkpkg/update_retroplayer-addons index 2988ba2d7d..c9ae3d1872 100755 --- a/tools/mkpkg/update_retroplayer-addons +++ b/tools/mkpkg/update_retroplayer-addons @@ -12,6 +12,7 @@ fi # the following environment variables can be set to "yes" to enable optional features: # KEEP_GIT_DIRS: don't delete cloned git directories after update check +# BUMP_PKG_REV: bump PKG_REV if PKG_VERSION has changed MY_DIR="$(dirname "$0")" ROOT="$(cd "${MY_DIR}"/../.. && pwd)" @@ -79,7 +80,9 @@ for addontxt in "game-binary-addons https://github.com/kodi-game/repo-binary-add GAME_VERSION=$(get_pkg_var "${GAME_ADDON}" PKG_VERSION) if [ "${GAME_VERSION}" != "${GAME_NEW_VERSION}" ]; then - BUMPED="yes" + if [ "${BUMP_PKG_REV}" = "yes" ]; then + BUMPED="yes" + fi [ -n "${RETRO_NAME}" ] && CHECK_RETRO="yes" set_pkg_version "${GAME_PATH}" "${GAME_NEW_VERSION}" download_pkg_file "${GAME_ADDON}"