Add StepRunParserPlugin to tpk-backend 06/57506/12 accepted/tizen/common/20160217.170651 accepted/tizen/ivi/20160218.023259 accepted/tizen/mobile/20160212.002404 accepted/tizen/tv/20160212.002417 accepted/tizen/wearable/20160212.002444 submit/tizen/20160211.093134 submit/tizen_common/20160217.131930 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
authorLukasz Wartalowicz <l.wartalowic@samsung.com>
Wed, 20 Jan 2016 13:38:56 +0000 (14:38 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Thu, 11 Feb 2016 09:25:03 +0000 (10:25 +0100)
Requires:
        - https://review.tizen.org/gerrit/#/c/57334/

Add StepRunParserPlugin to tpk-backend

Change-Id: I53637957d88273a06e520548cec795df852b6c7a

src/tpk/tpk_installer.cc

index f209a852c1fdf1373beaad91c937b1a672d44f06..26d07e8e6615b814364c5e111bf31b458c8d3967 100644 (file)
@@ -34,6 +34,7 @@
 #include <common/step/step_register_security.h>
 #include <common/step/step_rollback_deinstallation_security.h>
 #include <common/step/step_rollback_installation_security.h>
+#include <common/step/step_run_parser_plugins.h>
 #include <common/step/step_check_signature.h>
 #include <common/step/step_unregister_app.h>
 #include <common/step/step_unzip.h>
@@ -123,6 +124,8 @@ void TpkInstaller::InstallSteps() {
   AddStep<ci::security::StepRegisterSecurity>();
   AddStep<tpk::pkgmgr::StepConvertXml>();
   AddStep<ci::pkgmgr::StepRegisterApplication>();
+  AddStep<ci::pkgmgr::StepRunParserPlugin>(
+      ci::PluginsLauncher::ActionType::Install);
 }
 
 void TpkInstaller::UpdateSteps() {
@@ -152,6 +155,8 @@ void TpkInstaller::UpdateSteps() {
   AddStep<ci::security::StepUpdateSecurity>();
   AddStep<tpk::pkgmgr::StepConvertXml>();
   AddStep<ci::pkgmgr::StepUpdateApplication>();
+  AddStep<ci::pkgmgr::StepRunParserPlugin>(
+      ci::PluginsLauncher::ActionType::Upgrade);
   /* TODO(jungh.yeon): this temporary step will be removed
   * when secondary parsing procedure has removed*/
   AddStep<ci::pkgmgr::StepUpdateTep>();
@@ -162,6 +167,8 @@ void TpkInstaller::UninstallSteps() {
   AddStep<ci::parse::StepParseManifest>(
       ci::parse::StepParseManifest::ManifestLocation::INSTALLED,
       ci::parse::StepParseManifest::StoreLocation::NORMAL);
+  AddStep<ci::pkgmgr::StepRunParserPlugin>(
+      ci::PluginsLauncher::ActionType::Uninstall);
   AddStep<ci::pkgmgr::StepKillApps>();
   AddStep<ci::pkgmgr::StepUnregisterApplication>();
   AddStep<ci::security::StepRollbackDeinstallationSecurity>();
@@ -201,6 +208,8 @@ void TpkInstaller::DeltaSteps() {
   AddStep<ci::security::StepUpdateSecurity>();
   AddStep<tpk::pkgmgr::StepConvertXml>();
   AddStep<ci::pkgmgr::StepUpdateApplication>();
+  AddStep<ci::pkgmgr::StepRunParserPlugin>(
+      ci::PluginsLauncher::ActionType::Upgrade);
 }
 
 void TpkInstaller::RecoverySteps() {
@@ -232,6 +241,8 @@ void TpkInstaller::ManifestDirectInstallSteps() {
   AddStep<ci::security::StepRollbackInstallationSecurity>();
   AddStep<ci::security::StepRegisterSecurity>();
   AddStep<ci::pkgmgr::StepRegisterApplication>();
+  AddStep<ci::pkgmgr::StepRunParserPlugin>(
+      ci::PluginsLauncher::ActionType::Install);
 }
 
 void TpkInstaller::ManifestDirectUpdateSteps() {
@@ -249,6 +260,8 @@ void TpkInstaller::ManifestDirectUpdateSteps() {
   AddStep<ci::security::StepRollbackInstallationSecurity>();
   AddStep<ci::security::StepRegisterSecurity>();
   AddStep<ci::pkgmgr::StepUpdateApplication>();
+  AddStep<ci::pkgmgr::StepRunParserPlugin>(
+      ci::PluginsLauncher::ActionType::Upgrade);
 }
 
 void TpkInstaller::ClearSteps() {