summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlho Kim <ilho159.kim@samsung.com>2024-01-24 17:38:21 +0900
committerIlho Kim <ilho159.kim@samsung.com>2024-01-24 18:03:41 +0900
commitd97d7f7cd5672ae731bda4eb04941cb7b4762aec (patch)
treecc0f5cb09391658b954e20bbb9ef61593bdeace8
parentf1806004819258042be0508977a09e0b91e73ba7 (diff)
downloadapp-installers-d97d7f7cd5672ae731bda4eb04941cb7b4762aec.tar.gz
app-installers-d97d7f7cd5672ae731bda4eb04941cb7b4762aec.tar.bz2
app-installers-d97d7f7cd5672ae731bda4eb04941cb7b4762aec.zip
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 <ilho159.kim@samsung.com>
-rw-r--r--src/common/step/configuration/step_parse_manifest.cc5
1 files 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 2caedf24..39a33417 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<PkgQueryInterface::PluginInfo> plugin_list;
pkg_query.PluginExecutionInfo(&plugin_list);