更新预置表问题修复

Signed-off-by: 张欣宇 <zhangxinyu74@huawei.com>
Change-Id: I52ea8b0d6bfcfb29e5566692ef77d688e29fe169
This commit is contained in:
张欣宇 2024-11-21 22:41:34 +08:00
parent 19faffd757
commit 54d6ad4b21

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;
}
}