mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
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>
This commit is contained in:
parent
e59cba6c89
commit
6f7e62d67a
@ -165,9 +165,15 @@ for ADDON in $(ls -1 "${ROOT}/packages/mediacenter/kodi-binary-addons"); do
|
|||||||
|
|
||||||
git_clone ${GIT_REPO} ${GIT_DIR}
|
git_clone ${GIT_REPO} ${GIT_DIR}
|
||||||
|
|
||||||
# update package.mk for stale github.com packages
|
if RESOLVED_HASH=$(resolve_hash_in_branch ${ADDON}.git ${KODI_BRANCH}); then
|
||||||
RESOLVED_HASH=$(resolve_hash_in_branch ${ADDON}.git HEAD) || continue
|
echo "Resolved hash for ${ADDON}: ${KODI_BRANCH} => ${RESOLVED_HASH}"
|
||||||
echo "Resolving hash for ${ADDON}: HEAD => ${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
|
if update_pkg "${ADDON_PATH}" "${ADDON}" "${RESOLVED_HASH}"; then
|
||||||
# always bump PKG_REV when updating untagged addons
|
# always bump PKG_REV when updating untagged addons
|
||||||
bump_pkg_rev "${ADDON_PATH}" "${ADDON}"
|
bump_pkg_rev "${ADDON_PATH}" "${ADDON}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user