Fix step order of hybrid installer 81/92581/1
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 17 Oct 2016 11:00:32 +0000 (20:00 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 17 Oct 2016 11:00:32 +0000 (20:00 +0900)
Parser plugins should be run after pakcage registration.

Change-Id: I0635000604e28c28e88a7e3d56b69a972fec533a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/hybrid/hybrid_installer.cc

index eac41e6..e98f992 100644 (file)
@@ -133,10 +133,10 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
       AddStep<wgt::filesystem::StepCreateSymbolicLink>();
       AddStep<tpk::filesystem::StepCreateSymbolicLink>();
       AddStep<wgt::pkgmgr::StepGenerateXml>();
-      AddStep<ci::pkgmgr::StepRunParserPlugin>(
-          ci::Plugin::ActionType::Install);
       AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::security::StepRegisterSecurity>();
+      AddStep<ci::pkgmgr::StepRunParserPlugin>(
+          ci::Plugin::ActionType::Install);
       AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
       AddStep<ci::filesystem::StepChangeOwner>();
       AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
@@ -327,10 +327,10 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
       AddStep<wgt::filesystem::StepCreateSymbolicLink>();
       AddStep<tpk::filesystem::StepCreateSymbolicLink>();
       AddStep<wgt::pkgmgr::StepGenerateXml>();
-      AddStep<ci::pkgmgr::StepRunParserPlugin>(
-          ci::Plugin::ActionType::Install);
       AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::security::StepRegisterSecurity>();
+      AddStep<ci::pkgmgr::StepRunParserPlugin>(
+          ci::Plugin::ActionType::Install);
       AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
       AddStep<ci::filesystem::StepChangeOwner>();
       AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
@@ -401,10 +401,10 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
       AddStep<ci::security::StepRollbackInstallationSecurity>();
       AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
       AddStep<wgt::pkgmgr::StepGenerateXml>();
-      AddStep<ci::pkgmgr::StepRunParserPlugin>(
-          ci::Plugin::ActionType::Install);
       AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::security::StepRegisterSecurity>();
+      AddStep<ci::pkgmgr::StepRunParserPlugin>(
+          ci::Plugin::ActionType::Install);
       AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
       AddStep<ci::filesystem::StepChangeOwner>();
       AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();