Fix backup plugin execution information 16/307216/2
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 24 Jan 2024 08:38:21 +0000 (17:38 +0900)
committerilho kim <ilho159.kim@samsung.com>
Thu, 7 Mar 2024 00:55:56 +0000 (00:55 +0000)
Add the plugin execution information to a manifest
not a manifest for backup can cause the previous plugin execution information
to be saved after the upgrade is complete

Change-Id: Ic078226fb34caec77748b432623c2b59c1719ca5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit d97d7f7cd5672ae731bda4eb04941cb7b4762aec)

src/common/step/configuration/step_parse_manifest.cc

index 2caedf2412305fcfc47400e2e4500bfcfa9c8885..39a3341718460e948b9b39ba81801d1db409191a 100644 (file)
@@ -272,8 +272,9 @@ bool StepParseManifest::FillPackageInfo(manifest_x* manifest) {
   }
 
   // retrieve and set plugin execution info if exists
-  if (manifest_location_ == ManifestLocation::INSTALLED ||
-      manifest_location_ == ManifestLocation::RECOVERY) {
+  if (store_location_ == StoreLocation::BACKUP && (
+      manifest_location_ == ManifestLocation::INSTALLED ||
+      manifest_location_ == ManifestLocation::RECOVERY)) {
     std::vector<PkgQueryInterface::PluginInfo> plugin_list;
     pkg_query.PluginExecutionInfo(&plugin_list);