From aaa2e1b606d9d1216eab819684b7ee4cf876a5f3 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Fri, 12 Mar 2021 21:43:46 +0900 Subject: [PATCH] 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 --- init_buildsystem | 5 +++-- 1 file 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 -- 2.7.4