Skip to content
Permalink
Browse files

update_binary-addons: prefer Kodi branch over HEAD for unofficial addons

This fixes bumping visualization.pictureit which has separate branches
for Leia and Matrix.

Signed-off-by: Matthias Reichl <hias@horus.com>
  • Loading branch information
HiassofT committed Dec 29, 2019
1 parent 54f7292 commit 49ebd0f9ab65282b626cd76900d18047010715f7
Showing with 9 additions and 3 deletions.
  1. +9 −3 tools/mkpkg/update_binary-addons
@@ -165,9 +165,15 @@ for ADDON in $(ls -1 "${ROOT}/packages/mediacenter/kodi-binary-addons"); do

git_clone ${GIT_REPO} ${GIT_DIR}

# update package.mk for stale github.com packages
RESOLVED_HASH=$(resolve_hash_in_branch ${ADDON}.git HEAD) || continue
echo "Resolving hash for ${ADDON}: HEAD => ${RESOLVED_HASH}"
if RESOLVED_HASH=$(resolve_hash_in_branch ${ADDON}.git ${KODI_BRANCH}); then
echo "Resolved hash for ${ADDON}: ${KODI_BRANCH} => ${RESOLVED_HASH}"
elif RESOLVED_HASH=$(resolve_hash_in_branch ${ADDON}.git HEAD); then
echo "Resolved hash for ${ADDON}: HEAD => ${RESOLVED_HASH}"
else
msg_warn "WARNING: Could not resolve hash for ${ADDON}"
continue
fi

if update_pkg "${ADDON_PATH}" "${ADDON}" "${RESOLVED_HASH}"; then
# always bump PKG_REV when updating untagged addons
bump_pkg_rev "${ADDON_PATH}" "${ADDON}"

0 comments on commit 49ebd0f

Please sign in to comment.
You can’t perform that action at this time.