Fix ReadonlyUpdateUninstall 73/139073/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 17 Jul 2017 07:25:12 +0000 (16:25 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 17 Jul 2017 07:25:12 +0000 (16:25 +0900)
The original package is preloaded(readonly) so we need to switch
readonly mode before update security context.

Change-Id: Iaad59be0850bf68ffb9bde4bbdfed34ba2327494
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/wgt/wgt_installer.cc

index ef52922b5aae5e27fdf1ca278bbe7abcb6798def..20c741b4619212d328b7f528de29b9805385797e 100755 (executable)
@@ -597,6 +597,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepRemoveFiles>();
       AddStep<ci::filesystem::StepRemoveZipImage>();
       AddStep<ci::pkgmgr::StepUpdateApplication>();
+      AddStep<ci::configuration::StepSwitchReadonlyMode>();
       AddStep<ci::security::StepUpdateSecurity>();
       AddStep<ci::pkgmgr::StepRemoveManifest>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(ci::Plugin::ActionType::Upgrade);