From: Sangyoon Jang Date: Thu, 18 Jan 2024 09:22:38 +0000 (+0900) Subject: Fix updating certinfo X-Git-Tag: accepted/tizen/unified/20240129.163357~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fapp-installers.git;a=commitdiff_plain;h=c9ec06b0d5074b397c291aa6741324d6fd517d02 Fix updating certinfo Remove delete operation when update cert. Now update operation for cert can be performed at once. Requires: - https://review.tizen.org/gerrit/c/platform/core/appfw/pkgmgr-info/+/304516 Change-Id: Iee83375151cd074ffe75f5b5e6eb78187542cd24 Signed-off-by: Sangyoon Jang --- diff --git a/src/common/pkgmgr_registration.cc b/src/common/pkgmgr_registration.cc index 71c2d64..57d3554 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;