Fix backup plugin execution information 49/304849/2
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 24 Jan 2024 08:38:21 +0000 (17:38 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 24 Jan 2024 09:03:41 +0000 (18:03 +0900)
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>
src/common/step/configuration/step_parse_manifest.cc

index 2caedf2..39a3341 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);