From 33459e10017d5c8cde6b46bfb2f19e869ecb69e9 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Thu, 30 Jan 2020 17:03:17 +0900 Subject: [PATCH] Fix build error Fix build error caused by upgrading boost library into version 1.71.0. Change-Id: I27f995c53da3623860edfab5f05e0719d4f0fbcf Signed-off-by: Junghyun Yeon --- src/common/app_query_interface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/app_query_interface.cc b/src/common/app_query_interface.cc index 7404bee..0d10067 100644 --- a/src/common/app_query_interface.cc +++ b/src/common/app_query_interface.cc @@ -16,7 +16,7 @@ bool AppQueryInterface::IsPkgInstalled(const std::string& arg, bs::error_code ec; std::string pkg_id; // argument from commandline is path to file - if (bf::exists(arg, ec) && ec == 0) + if (bf::exists(arg, ec) && ec.value() == boost::system::errc::success) pkg_id = GetPkgIdFromPath(arg); if (pkg_id.empty()) pkg_id = arg; -- 2.7.4