diff options
author | park <sk7.park@samsung.com> | 2022-12-15 04:57:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2022-12-15 04:57:12 +0000 |
commit | 139d07f087cc3dafedd99f6cae32a18f6e1d2aa1 (patch) | |
tree | bc00d1dc83d2d34205ff8a469d0fe1b9420cb387 | |
parent | e8b79395761a616f38110747e3d06d87e43d2ccb (diff) | |
parent | 0bb60b3435ea1fa8c2676c428a0834c6c95245c7 (diff) | |
download | build-139d07f087cc3dafedd99f6cae32a18f6e1d2aa1.tar.gz build-139d07f087cc3dafedd99f6cae32a18f6e1d2aa1.tar.bz2 build-139d07f087cc3dafedd99f6cae32a18f6e1d2aa1.zip |
Merge "Support BuildFlags: nocumulaterpms" into devel
-rw-r--r-- | build-pkg-rpm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/build-pkg-rpm b/build-pkg-rpm index 9f4b15d..f834c00 100644 --- a/build-pkg-rpm +++ b/build-pkg-rpm @@ -88,13 +88,18 @@ rpm_init_cumulate() { # # ref: https://review.tizen.org/gerrit/#/c/platform/upstream/build/+/25635/ - -# DO_CUMULATE= -# typeset -ri suse_version=$(chroot "$BUILD_ROOT" rpm --eval '%{?suse_version}' 2>/dev/null) -# if ((suse_version > 1220)) ; then -# DO_CUMULATE=true -# fi DO_CUMULATE=true + local nocumulaterpms=$(queryconfig --dist "$BUILD_DIST" --configdir "$CONFIG_DIR" --archpath "$BUILD_ARCH" buildflags nocumulaterpms) + if test -n "$nocumulaterpms" ; then + test "$nocumulaterpms" != 0 && DO_CUMULATE=false + #else + # # compatibility: auto-set cumulate for newer suse distros + # typeset -ri suse_version=$(queryconfig --dist "$BUILD_DIST" --configdir "$CONFIG_DIR" --archpath "$BUILD_ARCH" eval '%{?suse_version}') + # if ((suse_version > 1220)) ; then + # DO_CUMULATE=true + # fi + fi + } pkg_verify_installed_rpm() { @@ -137,7 +142,7 @@ pkg_finalize_rpm() { rm -f "$BUILD_ROOT"/${CUMULATED_LIST[$num]} cp "$BUILD_ROOT"/.init_b_cache/rpms/$PKG "$BUILD_ROOT"/${CUMULATED_LIST[$num]} || cleanup_and_exit 1 done > "$BUILD_ROOT"/.init_b_cache/manifest - ( cd "$BUILD_ROOT" && chroot "$BUILD_ROOT" rpm --ignorearch --noorder --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS \ + ( cd "$BUILD_ROOT" && chroot "$BUILD_ROOT" rpm --ignorearch --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS \ $ADDITIONAL_PARAMS .init_b_cache/manifest 2>&1 || touch "$BUILD_ROOT"/exit ) for ((num=0; num<=cumulate; num++)) ; do rm -f "$BUILD_ROOT"/${CUMULATED_LIST[$num]} |