We can't use cumulative install because we don't use %suse_version macro.
However, our build system is based on openSUSE Build service and we use
always newer suse version than 1220. Thus, we can always enable cumulative
install instead of defining the suse_version. I think it's better than
we touch the suse_version macro manually.[1]
[1]: https://review.tizen.org/gerrit/#/c/25292/
Change-Id: I7673db1660945bb80e8c49a183b76927ae340e45
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
test -x $BUILD_ROOT/sbin/ldconfig && chroot $BUILD_ROOT /sbin/ldconfig 2>&1
-typeset -ri suse_version=$(chroot $BUILD_ROOT rpm --eval '%{?suse_version}' 2>/dev/null)
typeset -i num cumulate=-1
typeset -a CUMULATED_LIST=()
typeset -a CUMULATED_PIDS=()
typeset -a CUMULATED_HMD5=()
-DO_CUMULATE=
-if ((suse_version > 1220)) ; then
- DO_CUMULATE=true
-fi
+DO_CUMULATE=true
MAIN_LIST="$PACKAGES_TO_INSTALL $PACKAGES_TO_CBINSTALL"
test -n "$DO_CUMULATE" && MAIN_LIST="$MAIN_LIST CUMULATED"