Fix StepCheckRestriction 78/113778/1
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 3 Feb 2017 07:10:40 +0000 (16:10 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 9 Feb 2017 01:40:13 +0000 (17:40 -0800)
Check restriction mode when MountInstall mode.
Do not check when Reinstall mode.

Change-Id: Iac52df7d8c8a9ef3b250e3197354ea663e3685e8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 83b1ddd6942f0491f2491cde94fc8ddd9958b08d)

src/common/step/pkgmgr/step_check_restriction.cc

index cfb8eda7ca957811f34310cea709bef1ea0cf3e4..01314141a00a4eb39cda777dfd4ead6b26c50f57 100644 (file)
@@ -20,14 +20,12 @@ Step::Status StepCheckRestriction::process() {
   int type;
   switch (context_->request_type.get()) {
   case ci::RequestType::Install:
+  case ci::RequestType::MountInstall:
     type = PM_RESTRICTION_MODE_INSTALL;
     break;
   case ci::RequestType::Uninstall:
     type = PM_RESTRICTION_MODE_UNINSTALL;
     break;
-  case ci::RequestType::Reinstall:
-    type = PM_RESTRICTION_MODE_REINSTALL;
-    break;
   case ci::RequestType::Move:
     type = PM_RESTRICTION_MODE_MOVE;
     break;