Merge data directory when copying backup storage dir 40/79340/1
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 11 Jul 2016 04:43:49 +0000 (13:43 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 11 Jul 2016 04:52:17 +0000 (13:52 +0900)
Some packages have empty data directory. This caused update failure.

Change-Id: I87feb6b7e27ff3bfe24a3ca1a3612ebc5ea044da
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/common/step/filesystem/step_copy_storage_directories.cc

index 19cb701..ca54138 100644 (file)
@@ -56,7 +56,7 @@ common_installer::Step::Status StepCopyStorageDirectories::process() {
     return Status::OK;
   if (!MoveAppStorage(backup_path_,
                       context_->pkg_path.get(),
-                      kDataLocation)) {
+                      kDataLocation, true)) {
     LOG(ERROR) << "Failed to restore private directory for widget in update";
     return Status::APP_DIR_ERROR;
   }