Fix the updating of the RPM database 45/264645/1 accepted/tizen/6.5/unified/20211028.120058 accepted/tizen/unified/20210929.022338 submit/tizen/20210928.133420 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 27 Sep 2021 16:56:21 +0000 (18:56 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 27 Sep 2021 16:56:21 +0000 (18:56 +0200)
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

upgrade/update-init.sh.in

index 8f1d15b80f5bdcc634f2f8cae8ab0082333112e3..c23c525f7bc5fc66c07be46a7ed7aff7510a92ed 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