Fox to not print error message when certinfo is not exists 57/105957/2 accepted/tizen/3.0/common/20161227.101238 accepted/tizen/3.0/ivi/20161222.024823 accepted/tizen/3.0/mobile/20161222.024704 accepted/tizen/3.0/tv/20161222.024730 accepted/tizen/3.0/wearable/20161222.024756 submit/tizen_3.0/20161221.130430
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 20 Dec 2016 06:12:23 +0000 (15:12 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 21 Dec 2016 06:35:06 +0000 (22:35 -0800)
Change-Id: I4c70db626d2ad65658ab6810c250e67d44734382
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/pkgmgr_query.cc

index b92cf3e..e7ad7e7 100644 (file)
@@ -48,7 +48,9 @@ std::string QueryCertificateAuthorCertificate(const std::string& pkgid,
   }
   ret = pkgmgrinfo_pkginfo_load_certinfo(pkgid.c_str(), handle, uid);
   if (ret != PMINFO_R_OK) {
-    LOG(DEBUG) << "pkgmgrinfo_pkginfo_load_certinfo failed with error: " << ret;
+    if (ret != PMINFO_R_ENOENT)
+      LOG(DEBUG) << "pkgmgrinfo_pkginfo_load_certinfo failed with error: "
+                 << ret;
     pkgmgrinfo_pkginfo_destroy_certinfo(handle);
     return {};
   }