Fix the updating of the RPM database 49/264749/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/hotfix/20211001.003054 submit/tizen_6.0_hotfix/20210929.064355
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 27 Sep 2021 16:56:21 +0000 (18:56 +0200)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 29 Sep 2021 06:22:57 +0000 (06:22 +0000)
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)

upgrade/update-init.sh.in

index 8f1d15b..c23c525 100755 (executable)
@@ -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