skip copying RW directoires in case of GLOBAL-app update 03/62803/1
authorjongmyeongko <jongmyeong.ko@samsung.com>
Fri, 18 Mar 2016 10:15:23 +0000 (19:15 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Fri, 18 Mar 2016 10:15:23 +0000 (19:15 +0900)
Change-Id: Ia36c632f79678ec20bc44eaeac24cf96087d2f72
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/common/step/step_copy_storage_directories.cc

index a77d0b7..720e810 100644 (file)
@@ -52,6 +52,8 @@ common_installer::Step::Status StepCopyStorageDirectories::precheck() {
 }
 
 common_installer::Step::Status StepCopyStorageDirectories::process() {
+  if (context_->request_mode.get() == RequestMode::GLOBAL)
+    return Status::OK;
   if (!MoveAppStorage(backup_path_,
                       context_->pkg_path.get(),
                       kDataLocation)) {