!7538 更新预置表问题修复

Merge pull request !7538 from 张欣宇/fixrecover
This commit is contained in:
openharmony_ci 2024-11-21 15:41:20 +00:00 committed by Gitee
commit 077317e92d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3864,9 +3864,9 @@ void BMSEventHandler::UpdatePreinstallDBForNotUpdatedBundle(const std::string &b
preInstallBundleInfo.SetIconId(applicationInfo.iconResource.id);
preInstallBundleInfo.SetModuleName(applicationInfo.labelResource.moduleName);
}
auto bundleInfo = item.second.GetBaseBundleInfo();
if (!bundleInfo.hapModuleInfos.empty() &&
bundleInfo.hapModuleInfos[0].moduleType == ModuleType::ENTRY) {
auto innerModuleInfos = item.second.GetInnerModuleInfos();
if (!innerModuleInfos.empty() &&
innerModuleInfos.begin()->second.distro.moduleType == Profile::MODULE_TYPE_ENTRY) {
findEntry = true;
}
}