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)
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;