summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/pkgmgr_registration.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/pkgmgr_registration.cc b/src/common/pkgmgr_registration.cc
index 71c2d64d..57d3554d 100644
--- a/src/common/pkgmgr_registration.cc
+++ b/src/common/pkgmgr_registration.cc
@@ -162,7 +162,9 @@ bool UpgradeAppInPkgmgr(manifest_x* manifest,
return false;
}
- (void) pkgmgr_installer_delete_certinfo(pkgid.c_str());
+ // TODO(jeremy.jang): consider updating cert only when dist cert is changed.
+ // because the package from different author is not allowed to be installed,
+ // so auth cert cannot be changed when update.
if (!RegisterCertificates(cert_info, pkgid, uid))
return false;