mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-23 08:20:00 +00:00
scripts/get_archive: allow changing sha256 on the fly
This commit is contained in:
parent
103edb022c
commit
4807ea751a
@ -39,8 +39,13 @@ while [ ${NBWGET} -gt 0 -a ${NBCHKS} -gt 0 ]; do
|
||||
|
||||
[ -z "${PKG_SHA256}" -o "${PKG_SHA256}" = "${CALC_SHA256}" ] && break 2
|
||||
|
||||
build_msg "CLR_WARNING" "WARNING" "Incorrect checksum calculated on downloaded file: got ${CALC_SHA256} wanted ${PKG_SHA256}"
|
||||
NBCHKS=$((NBCHKS - 1))
|
||||
if [ "${CHANGE_HASH}" = "yes" ]; then
|
||||
sed -e "s|^PKG_SHA256=.*|PKG_SHA256=\"${CALC_SHA256}\"|" -i "${PKG_DIR}/package.mk"
|
||||
break 2
|
||||
else
|
||||
build_msg "CLR_WARNING" "WARNING" "Incorrect checksum calculated on downloaded file: got ${CALC_SHA256} wanted ${PKG_SHA256}"
|
||||
NBCHKS=$((NBCHKS - 1))
|
||||
fi
|
||||
fi
|
||||
done
|
||||
NBWGET=$((NBWGET - 1))
|
||||
|
Loading…
Reference in New Issue
Block a user