From ec1210eebca4f973386b76898932b4a785c13321 Mon Sep 17 00:00:00 2001 From: lihex <44403798+lihexali@users.noreply.github.com> Date: Wed, 21 Sep 2022 21:06:25 +0800 Subject: [PATCH] force overwrite file on unziping files add flag "-o" to overwrite file on unzipping. when a build is interrupted by some issues, it will cause a re-substitution problem after a rebuild the target whose source code come from a zip file (like target jzintv) --- scripts/extract | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extract b/scripts/extract index c02e260a2d..fa4552b542 100755 --- a/scripts/extract +++ b/scripts/extract @@ -60,7 +60,7 @@ case "${PKG_SOURCE_NAME}" in 7z x -o"${2}/${1}" "${FULL_SOURCE_PATH}" ;; *.zip) - unzip -q "${FULL_SOURCE_PATH}" -d "${2}" + unzip -o -q "${FULL_SOURCE_PATH}" -d "${2}" ;; *.diff | *.patch) patch -d "${2}" -p1 < "${FULL_SOURCE_PATH}"