Add StepCheckRestriction 63/74163/3 accepted/tizen/common/20160616.151527 accepted/tizen/ivi/20160616.002903 accepted/tizen/mobile/20160616.002833 accepted/tizen/tv/20160616.002815 accepted/tizen/wearable/20160616.002725 submit/tizen/20160615.073423
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 13 Jun 2016 04:56:01 +0000 (13:56 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 15 Jun 2016 06:11:21 +0000 (23:11 -0700)
Added at install, uninstall, reinstall, move, mount install.

Change-Id: I07a122cef2ed349e4b780eac6832b1fe64be230d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/tpk/tpk_installer.cc

index ab2aba624fd15ff9659adf728072f3773ce8dbfd..24cd4db95a40311e0178b9ebc451141482d4b176 100644 (file)
@@ -35,6 +35,7 @@
 #include <common/step/mount/step_mount_install.h>
 #include <common/step/mount/step_mount_update.h>
 #include <common/step/pkgmgr/step_check_removable.h>
+#include <common/step/pkgmgr/step_check_restriction.h>
 #include <common/step/pkgmgr/step_kill_apps.h>
 #include <common/step/pkgmgr/step_recover_application.h>
 #include <common/step/pkgmgr/step_register_app.h>
@@ -136,6 +137,7 @@ void TpkInstaller::InstallSteps() {
       ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
       ci::configuration::StepParseManifest::StoreLocation::NORMAL);
   AddStep<tpk::configuration::StepParsePreload>();
+  AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
   AddStep<ci::security::StepPrivilegeCompatibility>();
@@ -195,6 +197,7 @@ void TpkInstaller::UpdateSteps() {
 
 void TpkInstaller::UninstallSteps() {
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+  AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::pkgmgr::StepCheckRemovable>();
   AddStep<ci::configuration::StepParseManifest>(
       ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
@@ -219,6 +222,7 @@ void TpkInstaller::ReinstallSteps() {
      ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
      ci::configuration::StepParseManifest::StoreLocation::NORMAL);
   AddStep<tpk::configuration::StepParsePreload>();
+  AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   // TODO(t.iwanek): add StepCheckSignature which is missing
   // this step is temporary removed because of validation problems as files
@@ -280,6 +284,7 @@ void TpkInstaller::DeltaSteps() {
 
 void TpkInstaller::MoveSteps() {
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+  AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::configuration::StepParseManifest>(
       ci::configuration::StepParseManifest::ManifestLocation::INSTALLED,
       ci::configuration::StepParseManifest::StoreLocation::NORMAL);
@@ -311,6 +316,7 @@ void TpkInstaller::MountInstallSteps() {
       ci::configuration::StepParseManifest::ManifestLocation::PACKAGE,
       ci::configuration::StepParseManifest::StoreLocation::NORMAL);
   AddStep<tpk::configuration::StepParsePreload>();
+  AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
   AddStep<ci::security::StepPrivilegeCompatibility>();