Don't check restriction mode when running in offline mode 33/74933/1 accepted/tizen/common/20160616.151934 accepted/tizen/ivi/20160616.132156 accepted/tizen/mobile/20160616.132129 accepted/tizen/tv/20160616.132139 accepted/tizen/wearable/20160616.132145 submit/tizen/20160616.063122
authorSangyoon Jang <s89.jang@samsung.com>
Thu, 16 Jun 2016 06:19:57 +0000 (15:19 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Thu, 16 Jun 2016 06:19:57 +0000 (15:19 +0900)
Change-Id: I9759ddeb53725e70f5b7a61a311dc99a9298a6cc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/common/step/pkgmgr/step_check_restriction.cc

index 544a896..cfb8eda 100644 (file)
@@ -14,6 +14,9 @@ namespace common_installer {
 namespace pkgmgr {
 
 Step::Status StepCheckRestriction::process() {
+  if (context_->installation_mode.get() == InstallationMode::OFFLINE)
+    return Status::OK;
+
   int type;
   switch (context_->request_type.get()) {
   case ci::RequestType::Install: