mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
buildsystem: build/unpack - simplify some logic
This commit is contained in:
parent
cd71230bdb
commit
f9a2623d06
@ -43,15 +43,14 @@ STAMP=${STAMPS}/${PKG_NAME}/build_${TARGET}
|
||||
if [ -f ${STAMP} ]; then
|
||||
. ${STAMP}
|
||||
PKG_DEEPHASH=$(calculate_stamp)
|
||||
if [ ! "${PKG_DEEPHASH}" = "${STAMP_PKG_DEEPHASH}" ]; then
|
||||
rm -f ${STAMP}
|
||||
elif [ ! "${BUILD_WITH_DEBUG}" = "${STAMP_BUILD_WITH_DEBUG}" ]; then
|
||||
rm -f ${STAMP}
|
||||
else
|
||||
|
||||
if [ "${PKG_DEEPHASH}" = "${STAMP_PKG_DEEPHASH}" -a "${BUILD_WITH_DEBUG}" = "${STAMP_BUILD_WITH_DEBUG}" ]; then
|
||||
# stamp matched: already built, do nothing
|
||||
pkg_lock_status "UNLOCK" "${PKG_NAME}:${TARGET}" "build" "already built"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
rm -f ${STAMP}
|
||||
fi
|
||||
|
||||
if [ -n "${PKG_DEPENDS_UNPACK}" ]; then
|
||||
@ -216,9 +215,7 @@ pkg_lock_status "ACTIVE" "${PKG_NAME}:${TARGET}" "build"
|
||||
pkg_call_exists pre_build_${TARGET} && pkg_call pre_build_${TARGET}
|
||||
|
||||
# ensure ${PKG_BUILD} is there. (installer? PKG_URL="")
|
||||
if [ ! -d "${PKG_BUILD}" ] ; then
|
||||
mkdir -p "${PKG_BUILD}"
|
||||
fi
|
||||
mkdir -p "${PKG_BUILD}"
|
||||
|
||||
cd "${PKG_BUILD}"
|
||||
|
||||
|
@ -36,8 +36,10 @@ PARENT_PKG="${2:-${PKG_NAME}:${TARGET}}"
|
||||
pkg_lock "${PKG_NAME}:${TARGET}" "install" "${PARENT_PKG}"
|
||||
|
||||
STAMP=${STAMPS_INSTALL}/${PKG_NAME}/install_${TARGET}
|
||||
[ -f ${STAMP} ] && pkg_lock_status "UNLOCK" "${PKG_NAME}:${TARGET}" "install" "already installed"
|
||||
[ -f ${STAMP} ] && exit 0
|
||||
if [ -f ${STAMP} ]; then
|
||||
pkg_lock_status "UNLOCK" "${PKG_NAME}:${TARGET}" "install" "already installed"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p ${STAMPS_INSTALL}/${PKG_NAME}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user