Change backup db logic 58/259058/15
authorIlho Kim <ilho159.kim@samsung.com>
Mon, 31 May 2021 09:56:19 +0000 (18:56 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 3 Jun 2021 02:38:56 +0000 (11:38 +0900)
commit58634349e7c8372cd4f0748f61f4eb51a7cf3b9c
tree44699f3feee2e7d14673126e0b7528632ee54b9e
parente6901b7c16df1cf003934a91f0dfa932786ae134
Change backup db logic

 - Change to using sqlite3_backup api for making backup db
 - Try integrity check before restore backup db
   and if integrity check fail, the backup is cleared and continue to upgrade
 - Delete backup db when upgrade operation has failed

Change-Id: I77b8c2c197255b3aab4a44671df89d2b3652b289
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/pkg_upgrade/pkg_upgrade.c