From: Mateusz Moscicki Date: Mon, 27 Sep 2021 16:56:21 +0000 (+0200) Subject: Fix the updating of the RPM database X-Git-Tag: submit/tizen_6.0/20210929.064339^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0;p=platform%2Fcore%2Fsystem%2Fsystem-rw-update.git Fix the updating of the RPM database Until now the RPM database has only been updated if the system version has changed. However such an update is needed even if the version number does not change. Change-Id: Ide8a6d7c5b79c18559c916895274145ae71c9b7b (cherry picked from commit 5de54625129ace255632429104e2f80709da4187) --- diff --git a/upgrade/update-init.sh.in b/upgrade/update-init.sh.in index 8f1d15b..c23c525 100755 --- a/upgrade/update-init.sh.in +++ b/upgrade/update-init.sh.in @@ -9,14 +9,11 @@ DEBUG_MODE_FILE=/opt/usr/.upgdebug if [ -f $RW_MACRO ]; then source $RW_MACRO - get_version_info fi -if [ ! "$OLD_VER" = "$NEW_VER" ]; then - # Restore rpm db - rm -rf /var/lib/rpm/* - restore_backup_file -f /opt/var/lib/rpm -fi +# Restore rpm db +rm -rf /var/lib/rpm/* +restore_backup_file -f /opt/var/lib/rpm # Permission Update for shared directories /etc/gumd/useradd.d/91_user-dbspace-permissions.post owner