Fix StepWgtPreparePackageDirectory 69/242969/2
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 2 Sep 2020 06:43:42 +0000 (15:43 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 2 Sep 2020 06:45:12 +0000 (15:45 +0900)
The unpacked dir path should not be changed. The extracted files will be
recovered without changing unpacked dir path

Change-Id: I696fd99acff2ec8d825188166aa4a9c94b7b6fd6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/wgt/step/filesystem/step_wgt_prepare_package_directory.cc

index 5b2bb0f..4e90b29 100644 (file)
@@ -78,11 +78,6 @@ ci::Step::Status StepWgtPreparePackageDirectory::ExtractEntries() {
   bf::path backup_path =
       ci::GetBackupPathForPackagePath(context_->GetPkgPath());
   backupPath_ = backup_path;
-  if (context_->request_type.get() == ci::RequestType::MountUpdate &&
-      context_->recovery_info.get().recovery_file) {
-    context_->recovery_info.get().recovery_file->set_unpacked_dir(backup_path);
-    context_->recovery_info.get().recovery_file->WriteAndCommitFileContent();
-  }
 
   bf::path resource_path = context_->GetPkgPath() / kResWgtDirectory;
   bs::error_code error;