mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-23 07:09:53 +00:00
!7449 卸载恢复预制应用判断逻辑修正
Merge pull request !7449 from amao/uninstallUpdate
This commit is contained in:
commit
bfc1759496
@ -1515,9 +1515,12 @@ ErrCode BaseBundleInstaller::ProcessBundleUninstall(
|
||||
LOG_W(BMS_TAG_INSTALLER, "uninstall bundle info missing");
|
||||
return ERR_APPEXECFWK_UNINSTALL_MISSING_INSTALLED_BUNDLE;
|
||||
}
|
||||
if (installParam.GetIsUninstallAndRecover() && !oldInfo.IsPreInstallApp()) {
|
||||
LOG_E(BMS_TAG_INSTALLER, "UninstallAndRecover bundle is not pre-install app");
|
||||
return ERR_APPEXECFWK_UNINSTALL_AND_RECOVER_NOT_PREINSTALLED_BUNDLE;
|
||||
if (installParam.GetIsUninstallAndRecover()) {
|
||||
PreInstallBundleInfo preInstallBundleInfo;
|
||||
if (!dataMgr_->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo)) {
|
||||
LOG_E(BMS_TAG_INSTALLER, "UninstallAndRecover %{public}s is not pre-install app", bundleName.c_str());
|
||||
return ERR_APPEXECFWK_UNINSTALL_AND_RECOVER_NOT_PREINSTALLED_BUNDLE;
|
||||
}
|
||||
}
|
||||
oldApplicationReservedFlag_ = oldInfo.GetApplicationReservedFlag();
|
||||
bundleType_ = oldInfo.GetApplicationBundleType();
|
||||
|
Loading…
Reference in New Issue
Block a user