use --replacefiles to replace --force 49/191849/1
authorjingui.ren <jingui.ren@samsung.com>
Wed, 26 Sep 2018 02:39:43 +0000 (10:39 +0800)
committerjingui.ren <jingui.ren@samsung.com>
Wed, 26 Sep 2018 02:39:43 +0000 (10:39 +0800)
Change-Id: I35068463206db50cc5009dbcaae481dd29102e99

build-pkg-rpm

index a87fbbbc6df4f9d79c4c6994313783abecdbdd9f..82e046df94b7c1a59f018af3f11c093a10e283da 100644 (file)
@@ -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$"