Fix StepTpkPreparePackageDirectory 12/235412/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 4 Jun 2020 09:02:03 +0000 (18:02 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 4 Jun 2020 09:03:32 +0000 (18:03 +0900)
The unpacked dir path should not be changed. The extracted files will be
recovered without changing unpacked dir path.

Change-Id: Iab1444c1ed26718ae0651263258906a482caac4d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/tpk/step/filesystem/step_tpk_prepare_package_directory.cc

index be258809f42e521cbd1e9ed2e8a3538602366873..71ba53de5a6f1c3a49dd79efdef52faa55807215 100644 (file)
@@ -82,11 +82,6 @@ ci::Step::Status StepTpkPreparePackageDirectory::ExtractEntries() {
   LOG(DEBUG) << "Extracting entries from zip package...";
   bf::path backup_path =
       ci::GetBackupPathForPackagePath(context_->GetPkgPath());
-  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();
-  }
 
   for (auto& entry : tpk::GetExtractEntries()) {
     LOG(DEBUG) << "Extracting: " << entry;