Remove unnecessary code 65/77365/1 accepted/tizen/common/20160706.141400 accepted/tizen/ivi/20160705.044601 accepted/tizen/mobile/20160705.044434 accepted/tizen/tv/20160705.044545 accepted/tizen/wearable/20160705.044458 submit/tizen/20160704.042542
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 29 Jun 2016 11:46:55 +0000 (20:46 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 29 Jun 2016 11:46:55 +0000 (20:46 +0900)
Cert info will be stored by installer.

Change-Id: Ia41bfa97201bd9588ae45ecea47a9c6f1d292867
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
parser/pkgmgr_parser_db.c

index d50835b..75b9112 100644 (file)
@@ -1894,26 +1894,6 @@ static int __insert_manifest_info_in_db(manifest_x *mfx, uid_t uid)
                        auth_href = author->href;
        }
 
-       /*Insert in the package_cert_info CERT_DB*/
-       pkgmgrinfo_instcertinfo_h cert_handle = NULL;
-       ret = pkgmgrinfo_set_cert_value(&cert_handle, PMINFO_SET_AUTHOR_ROOT_CERT, "author root certificate");
-       if (ret != PMINFO_R_OK) {
-               pkgmgrinfo_destroy_certinfo_set_handle(cert_handle);
-               _LOGE("Cert Info DB create handle failed\n");
-               return -1;
-       }
-       ret = pkgmgrinfo_save_certinfo(mfx->package, &cert_handle, uid);
-       if (ret != PMINFO_R_OK) {
-               pkgmgrinfo_destroy_certinfo_set_handle(cert_handle);
-               _LOGE("Cert Info DB Insert Failed\n");
-               return -1;
-       }
-
-       if (ret != PMINFO_R_OK) {
-               _LOGE("Failed to set default values");
-               return -1;
-       }
-
        /*Insert in the package_info DB*/
        sqlite3_snprintf(MAX_QUERY_LEN, query,
                "INSERT INTO package_info(" \