Modify database backup sequence 12/275212/2
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 18 May 2022 07:18:31 +0000 (16:18 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 18 May 2022 07:51:32 +0000 (16:51 +0900)
commitd3ae17f974f76f2561f45592cdf35a1e88dd674a
tree82312b7147bdd1d8e8b1f4bb208f6d6b38d4c58e
parent45fc85eff4f0ab34210a60430da256acbc0fe9dc
Modify database backup sequence

If there is a forced termination before erasing the backup flag
and applying the smack label, there is a problem of using the backup database
which the smack label is not applied in the next upgrade
so modify the smack label setting of the backup database
before removing the backup flag

Change-Id: I5201ef7b3c24e5f79abb32f030908a5d2e026c43
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit 0f92e1fed086178170bbe809bb90c28427fff53e)
src/pkg_upgrade/src/upgrader.cc