In the recovery of cleanup type, the original manifest file, not the
manifest of the backup path should be parsed
Change-Id: Id7d3a4b517f835c846ee34417a76c22077044c87
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit
59a0f25b59222249d796e0b7dff04b2ee25c766a)
install_path += ".xml";
fs::path backup_install_path =
common_installer::GetBackupPathForManifestFile(install_path);
- if (fs::exists(backup_install_path))
+ bool is_clean_up = false;
+ if (context_->recovery_info.get().recovery_file &&
+ context_->recovery_info.get().recovery_file->cleanup())
+ is_clean_up = true;
+ if (!is_clean_up && fs::exists(backup_install_path))
manifest = backup_install_path;
- else if (fs::exists(backup_path))
+ else if (!is_clean_up && fs::exists(backup_path))
manifest = backup_path;
else if (fs::exists(install_path))
manifest = install_path;