Backup databases before running pkg_upgrade 85/244785/6
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 24 Sep 2020 04:51:52 +0000 (13:51 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Fri, 25 Sep 2020 01:32:19 +0000 (10:32 +0900)
commit9f6d9ee94e61aaa479f8b629a58648b049b45b97
treec726414d89baa7c9bd351c438570aa5bff6c8241
parentb7cd36bf46417f7b7160952acb78e358e3255aa4
Backup databases before running pkg_upgrade

If pkg_upgrade forced terminated before it finished and then rerun
pkgmgr database will contain the result of previous work
it can cause errors when upgrading
so pkg_upgrade needs to backup the pkgmgr database before running
and remove the backup files after all is done

Change-Id: Ifbcc46071609df01829089beb93f942ce9283831
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
CMakeLists.txt
packaging/pkgmgr-tool.spec
src/pkg_upgrade/CMakeLists.txt
src/pkg_upgrade/pkg_upgrade.c