From 341aa35c3c4a77420b3fa4fe85cfcc76a26b53c4 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Sat, 6 Jul 2019 08:53:38 +0100 Subject: [PATCH] buildsystem: perform unpack when custom function provided --- scripts/unpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unpack b/scripts/unpack index 1c5876c862..81668f0115 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -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