From: biao716.wang Date: Fri, 12 Mar 2021 12:43:46 +0000 (+0900) Subject: XFix gbs full build error: binary not found X-Git-Tag: accepted/tizen/devbase/tools/20210326.013752~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aaa2e1b606d9d1216eab819684b7ee4cf876a5f3;p=tools%2Fbuild.git 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 --- 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