buildsystem: perform unpack when custom function provided

This commit is contained in:
MilhouseVH 2019-07-06 08:53:38 +01:00
parent 72af9fbb2d
commit 8ce2979b33

View File

@ -55,7 +55,7 @@ pkg_lock_status "ACTIVE" "${PKG_NAME}" "unpack"
${SCRIPTS}/get "${PKG_NAME}"
if [ -d "${SOURCES}/${PKG_NAME}" -o -d "${PKG_DIR}/sources" ]; then
if [ -d "${SOURCES}/${PKG_NAME}" -o -d "${PKG_DIR}/sources" ] || pkg_call_exists unpack; then
build_msg "CLR_UNPACK" "UNPACK" "${PKG_NAME}" "indent"
# unpack into a unique location as unpacking into a single ${BUILD} directory is not thread-safe