Fix signal when uninstalling after nonundoable step 87/316887/1
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 19 Dec 2024 05:29:36 +0000 (14:29 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 19 Dec 2024 05:41:52 +0000 (14:41 +0900)
After the step where undo is impossible, uninstall ignores failure and
proceeds as it is. so, uninstall succeeds
but there are cases that send signal with error value
this patch fix that case

Change-Id: Ifca8562e747bb66c5ed72cb55b633ee54b0e5cb3
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/installer/app_installer.cc

index c52ec32a90f45e1abceedd6f0272169346172abf..a36cbd23974b6a58065a2bd638e816692e30a743 100644 (file)
@@ -259,6 +259,7 @@ AppInstaller::Result AppInstaller::Process() {
 
       LOG(WARNING) << "Error during processing(" << (*it_)->name()
           << ") but the installation can't undo, installation is ongoing";
+      status_ = Step::Status::OK;
       const auto& recovery_file =
         context_->recovery_info.get().recovery_file;
       if (recovery_file)