diff options
author | Sangyoon Jang <jeremy.jang@samsung.com> | 2024-01-18 18:22:38 +0900 |
---|---|---|
committer | Sangyoon Jang <jeremy.jang@samsung.com> | 2024-01-18 18:28:52 +0900 |
commit | c9ec06b0d5074b397c291aa6741324d6fd517d02 (patch) | |
tree | 0ed2d24f6d2db8806e85cf67d0830ae55dcc7fd0 | |
parent | 71d6c033feeb1b3e31e648b55e94aec053ac8490 (diff) | |
download | app-installers-c9ec06b0d5074b397c291aa6741324d6fd517d02.tar.gz app-installers-c9ec06b0d5074b397c291aa6741324d6fd517d02.tar.bz2 app-installers-c9ec06b0d5074b397c291aa6741324d6fd517d02.zip |
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 <jeremy.jang@samsung.com>
-rw-r--r-- | src/common/pkgmgr_registration.cc | 4 |
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; |