Reflect pending cache when process operation end 91/301191/1
authorilho kim <ilho159.kim@samsung.com>
Thu, 9 Nov 2023 07:41:54 +0000 (16:41 +0900)
committerilho kim <ilho159.kim@samsung.com>
Fri, 10 Nov 2023 06:33:49 +0000 (15:33 +0900)
During clean operation, the parser-plugin can execute other process
to get updated package information in other process the pending package
information should be reflected

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

index 94a1299..bbed096 100644 (file)
@@ -259,6 +259,9 @@ AppInstaller::Result AppInstaller::Process() {
       SendProgress(current_step * kProgressRange / total_steps);
   }
 
+  if (!context_->pkgid.get().empty())
+    pkgmgr_parser_update_pending_cache(context_->pkgid.get().c_str());
+
   return result_;
 }