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