From: Sangyoon Jang Date: Wed, 9 Apr 2025 08:03:31 +0000 (+0900) Subject: Prevent unintentioanl removing recovery files X-Git-Tag: accepted/tizen/9.0/unified/20250430.170634~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f58cd76ce43ffb24f5f40fa8e2a0d0edf701cef;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Prevent unintentioanl removing recovery files Change-Id: Ibdf27779c71d39a71328ac9580014704574b3581 Signed-off-by: Sangyoon Jang (cherry picked from commit 28e1dc6b476344846a2211fd5889926a43d983fb) --- diff --git a/src/common/installer/app_installer.cc b/src/common/installer/app_installer.cc index a36cbd23..07f7ea8e 100644 --- a/src/common/installer/app_installer.cc +++ b/src/common/installer/app_installer.cc @@ -970,7 +970,10 @@ void AppInstaller::RemoveUnnecessaryRecoveryFiles() { << "] has been completed, so remove unnecessary recovery file[" << it.second << "]"; Remove(it.second); + continue; } + + recovery_file->set_keep_recovery_file(true); } }