After all steps succeed, send finish signal and set recovery file's cleanup flag
Related:
[app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/223113/
[tpk-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-backend/+/223114/
[wgt-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/wgt-backend/+/223115/
Change-Id: Iaac1d3db7c4a8d5a3fdae68acb962945a09d6769
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
}
} while (it-- != itStart);
failure_logger->WriteLogToFile();
+ SendFinished(status);
} else {
+ const auto& recovery_file =
+ context_->recovery_info.get().recovery_file;
+ if (recovery_file) {
+ recovery_file->set_cleanup(true);
+ recovery_file->WriteAndCommitFileContent();
+ }
+ SendFinished(status);
do {
if (it == itEnd)
--it;
}
sync();
- SendFinished(status);
-
if ((context_->installation_mode.get() == InstallationMode::OFFLINE) &&
(ret == Result::ERROR)) {
std::fstream info_file("/tmp/.preload_install_error",
}
Step::Status StepCopyBackup::clean() {
- recovery::RecoveryFile* recovery_file =
- context_->recovery_info.get().recovery_file.get();
- recovery_file->set_cleanup(true);
- recovery_file->WriteAndCommitFileContent();
-
LOG(DEBUG) << "Remove Applications files backup directory";
CleanBackupDirectory();
}
Step::Status StepUpdateStorageDirectories::clean() {
- recovery::RecoveryFile* recovery_file =
- context_->recovery_info.get().recovery_file.get();
- if (recovery_file) {
- recovery_file->set_cleanup(true);
- recovery_file->WriteAndCommitFileContent();
- }
if (mode_ == UpdateMode::NONE)
return Status::OK;