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 <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-02-28 22:37:20 +01:00
parent bd9d6774d4
commit 5344ab720a

View File

@ -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}"