From: jongmyeongko Date: Fri, 17 Jun 2016 05:58:09 +0000 (+0900) Subject: adjust error log condition. X-Git-Tag: accepted/tizen/common/20160621.184524~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d95262cf31142e2f44a41e8dc9a18450607e966c;p=platform%2Fcore%2Fappfw%2Fapp-installers.git adjust error log condition. Change-Id: I6320f98b9d35af9f5a4a2c5ec8e37ffa7d5aad94 Signed-off-by: jongmyeongko --- diff --git a/src/common/pkgmgr_registration.cc b/src/common/pkgmgr_registration.cc index fa97e24..88ac019 100644 --- a/src/common/pkgmgr_registration.cc +++ b/src/common/pkgmgr_registration.cc @@ -380,7 +380,8 @@ bool IsPackageInstalled(const std::string& pkg_id, RequestMode request_mode) { int ret = pkgmgrinfo_pkginfo_get_usr_pkginfo(pkg_id.c_str(), getuid(), &handle); if (ret != PMINFO_R_OK) { - LOG(ERROR) << "Failed to call pkgmgrinfo_pkginfo_get_usr_pkginfo"; + if (ret != PMINFO_R_ENOENT) + LOG(ERROR) << "Failed to call pkgmgrinfo_pkginfo_get_usr_pkginfo"; return false; } bool is_global = false; @@ -402,7 +403,8 @@ bool IsPackageInstalled(const std::string& pkg_id, uid_t uid) { pkgmgrinfo_pkginfo_h handle; int ret = pkgmgrinfo_pkginfo_get_usr_pkginfo(pkg_id.c_str(), uid, &handle); if (ret != PMINFO_R_OK) { - LOG(ERROR) << "Failed to call pkgmgrinfo_pkginfo_get_usr_pkginfo"; + if (ret != PMINFO_R_ENOENT) + LOG(ERROR) << "Failed to call pkgmgrinfo_pkginfo_get_usr_pkginfo"; return false; }