From d97d7f7cd5672ae731bda4eb04941cb7b4762aec Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Wed, 24 Jan 2024 17:38:21 +0900 Subject: [PATCH] Fix backup plugin execution information 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 --- src/common/step/configuration/step_parse_manifest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/step/configuration/step_parse_manifest.cc b/src/common/step/configuration/step_parse_manifest.cc index 2caedf2..39a3341 100644 --- a/src/common/step/configuration/step_parse_manifest.cc +++ b/src/common/step/configuration/step_parse_manifest.cc @@ -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 plugin_list; pkg_query.PluginExecutionInfo(&plugin_list); -- 2.7.4