Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / dependency_checker.cc
index 8f28e78..90ebd3a 100644 (file)
@@ -4,8 +4,6 @@
 
 #include "common/dependency_checker.h"
 
-#include <boost/filesystem/path.hpp>
-
 #include <pkgmgr-info.h>
 
 #include <manifest_parser/utils/logging.h>
@@ -15,6 +13,7 @@
 #include <tpk_manifest_handlers/package_handler.h>
 #include <tpk_manifest_handlers/tpk_config_parser.h>
 
+#include <filesystem>
 #include <map>
 #include <memory>
 #include <tuple>
@@ -24,8 +23,7 @@
 #include "common/archive_info.h"
 #include "common/utils/pkgmgr_query.h"
 
-namespace bf = boost::filesystem;
-
+namespace fs = std::filesystem;
 using Dependency = std::tuple<std::string, std::string, std::string>;
 
 namespace {
@@ -271,11 +269,11 @@ bool DependencyChecker::GetDepInfoFromXML(InstallerPtr installer) {
   std::string pkgid = pkgmgr_->GetRequestInfo(installer->GetIndex());
   PkgQueryInterface pkg_query(pkgid, pkgmgr_->GetUid());
 
-  bf::path xml_path =
-      bf::path(getUserManifestPath(pkgmgr_->GetUid(), true)) /
-      bf::path(pkgid + ".xml");
+  fs::path xml_path =
+      fs::path(getUserManifestPath(pkgmgr_->GetUid(), true)) /
+      fs::path(pkgid + ".xml");
 
-  if (!bf::exists(xml_path)) {
+  if (!fs::exists(xml_path)) {
     error_ = "xml path is not exist";
     return false;
   }