From ab67ec7ccc94b82e768743d1c325ac27e98317fb Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Wed, 13 Feb 2019 15:10:54 +0000 Subject: [PATCH] scripts/unpack: fix issue unpacking libhybris --- scripts/unpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unpack b/scripts/unpack index fd7bbf1da0..1fc760aefc 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -68,7 +68,7 @@ if [ -d "$SOURCES/${PKG_NAME}" -o -d "$PKG_DIR/sources" ]; then fi _pkg_build="$(basename "${PKG_BUILD}")" - [ -d "${PKG_UNPACK_DIR}/${_pkg_build}"* ] && mv "${PKG_UNPACK_DIR}/${_pkg_build}"* "${PKG_BUILD}" + [ -z "${PKG_SOURCE_DIR}" -a -d "${PKG_UNPACK_DIR}/${_pkg_build}"* ] && mv "${PKG_UNPACK_DIR}/${_pkg_build}"* "${PKG_BUILD}" if [ ! -d "${PKG_BUILD}" ]; then if [ -n "${PKG_SOURCE_DIR}" ]; then