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>
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() {
rm -rf "$BUILD_ROOT/.init_b_cache"
rm -f $BUILD_IS_RUNNING
rm -f $TMPFILE
-rm -rf "$cachedir/tmp_$$"
cleanup_and_exit 0