From 8bf0a333eab22d89df31001c832a32279c680807 Mon Sep 17 00:00:00 2001 From: "jingui.ren" Date: Wed, 26 Sep 2018 10:39:43 +0800 Subject: [PATCH] use --replacefiles to replace --force Change-Id: I35068463206db50cc5009dbcaae481dd29102e99 --- build-pkg-rpm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-pkg-rpm b/build-pkg-rpm index a87fbbb..82e046d 100644 --- a/build-pkg-rpm +++ b/build-pkg-rpm @@ -109,7 +109,7 @@ pkg_cumulate_rpm() { } pkg_install_rpm() { - ( cd "$BUILD_ROOT" && chroot "$BUILD_ROOT" rpm --ignorearch --force --nodeps -U --oldpackage --ignoresize $RPMCHECKOPTS \ + ( cd "$BUILD_ROOT" && chroot "$BUILD_ROOT" rpm --ignorearch --replacefiles --nodeps -U --oldpackage --ignoresize $RPMCHECKOPTS \ $ADDITIONAL_PARAMS .init_b_cache/$PKG.rpm 2>&1 || \ touch "$BUILD_ROOT"/exit ) | \ grep -v "^warning:.*saved as.*rpmorig$" -- 2.7.4