From c9ec06b0d5074b397c291aa6741324d6fd517d02 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Thu, 18 Jan 2024 18:22:38 +0900 Subject: [PATCH] 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 --- src/common/pkgmgr_registration.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.7.4