[Coding style] Wgt step reorder as tpk 96/98196/2
authorPiotr Ganicz <p.ganicz@samsung.com>
Tue, 15 Nov 2016 09:35:47 +0000 (10:35 +0100)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 17 Nov 2016 14:03:16 +0000 (06:03 -0800)
This commit reoders step RegisterApplication with RegisterSecurity as
it is done in Tpk installer. It could be done because that steps
do not depend of each other.

Change-Id: Ia30152f749f0b5a360bdabcfad032142e84cdd5f

src/wgt/wgt_installer.cc

index a9b0473..43fc80c 100755 (executable)
@@ -139,10 +139,10 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<wgt::filesystem::StepCopyPreviewIcons>();
       AddStep<wgt::security::StepCheckExtensionPrivileges>();
       AddStep<wgt::pkgmgr::StepGenerateXml>();
-      AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(
           ci::Plugin::ActionType::Install);
       AddStep<ci::security::StepRegisterSecurity>();
+      AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>();
       AddStep<ci::filesystem::StepChangeOwner>();
       AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();