diff options
-rwxr-xr-x | init_buildsystem | 5 |
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 |