buildsystem: build/unpack - simplify some logic

This commit is contained in:
MilhouseVH
2019-06-16 02:56:30 +01:00
parent cd71230bdb
commit f9a2623d06
2 changed files with 9 additions and 10 deletions
+4 -2
View File
@@ -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}