Fixing rollback 35/88235/5 accepted/tizen/3.0/common/20161114.082526 accepted/tizen/3.0/ivi/20161110.015554 accepted/tizen/3.0/mobile/20161110.015320 accepted/tizen/3.0/tv/20161110.015432 accepted/tizen/3.0/wearable/20161110.015524 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
authorTomasz Iwanek <t.iwanek@samsung.com>
Thu, 15 Sep 2016 10:25:48 +0000 (12:25 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 3 Nov 2016 13:49:20 +0000 (06:49 -0700)
This patch should fix:
 1) Situation when backup files are not fully restored when
    file that has been backed up wasn't removed yet -> file
    is not restored (new flag: FS_MERGE_OVERWRITE)
 2) Situation when backup file was not fully copied and we
    restore broken copy (new flag: FS_COMMIT_COPY_FILE)

Submit together:
 - https://review.tizen.org/gerrit/88235
 - https://review.tizen.org/gerrit/88236

Change-Id: I49baa0c194b6247d33f40cc804610eb32aafe490

src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc

index fbb8519..b14c333 100644 (file)
@@ -58,7 +58,7 @@ bool StepWgtPatchStorageDirectories::ShareDirFor3x() {
   }
   bf::path dst = context_->pkg_path.get() / kSharedResLocation;
   if (!common_installer::MoveDir(src, dst,
-                                 common_installer::FS_MERGE_DIRECTORIES)) {
+                                 common_installer::FS_MERGE_SKIP)) {
     LOG(ERROR) << "Failed to move shared data from res/wgt to shared";
     return false;
   }