summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2021-03-12 21:43:46 +0900
committerbiao716.wang <biao716.wang@samsung.com>2021-03-17 12:09:20 +0900
commitaaa2e1b606d9d1216eab819684b7ee4cf876a5f3 (patch)
tree4c21a5fdbe250d0ca04d5a43dc176d719c69a426
parent0dec4ddaa5a4980bb09499bd4c993260a55b90b0 (diff)
downloadbuild-aaa2e1b606d9d1216eab819684b7ee4cf876a5f3.tar.gz
build-aaa2e1b606d9d1216eab819684b7ee4cf876a5f3.tar.bz2
build-aaa2e1b606d9d1216eab819684b7ee4cf876a5f3.zip
XFix gbs full build error: binary not found
During gbs full build with multiple threads, If there are several packages downloading the same dependency package. It will have such issue very rarely. Change-Id: Ief2f35e32f12c3a3a6dac8783ee57c2d60177f52 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rwxr-xr-xinit_buildsystem5
1 files changed, 3 insertions, 2 deletions
diff --git a/init_buildsystem b/init_buildsystem
index 68be1b6..187f944 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -445,7 +445,9 @@ downloadpkg() {
rm -f "$destfile.v"
;;
esac
- mv "$destfile" "$SRC" || cleanup_and_exit 1
+ # if there is such package, didn't mv.
+ mv -n "$destfile" "$SRC" || cleanup_and_exit 1
+ rm -rf $destdir
}
getcachedir() {
@@ -1199,7 +1201,6 @@ rm -f "$BUILD_ROOT"/.rpmmacros "$BUILD_ROOT"/root/.rpmmacros
rm -rf "$BUILD_ROOT/.init_b_cache"
rm -f $BUILD_IS_RUNNING
rm -f $TMPFILE
-rm -rf "$cachedir/tmp_$$"
cleanup_and_exit 0