Remove boost dependency
[platform/core/appfw/app-installers.git] / src / pkg_initdb / init_pkg_db.cc
index cae8869..c98fa8d 100644 (file)
@@ -2,13 +2,12 @@
 // Use of this source code is governed by an apache-2.0 license that can be
 // found in the LICENSE file.
 
-#include <boost/filesystem/path.hpp>
-#include <boost/filesystem/operations.hpp>
 #include <tzplatform_config.h>
 
 #include <pkgmgr_parser_db.h>
 #include <pkgmgr-info.h>
 
+#include <filesystem>
 #include <iostream>
 #include <list>
 #include <string>
@@ -20,8 +19,8 @@
 #include "common/utils/file_util.h"
 #include "common/utils/subprocess.h"
 
-namespace bf = boost::filesystem;
 namespace ci = common_installer;
+namespace fs = std::filesystem;
 
 namespace {
 
@@ -66,7 +65,7 @@ bool InitPkgDB::Init(int argc, char *argv[]) {
 
 bool InitPkgDB::RunBackend(const std::string& pkgid,
     const std::string& type, bool preload) {
-  bf::path backend_path(kBackendDirectoryPath);
+  fs::path backend_path(kBackendDirectoryPath);
   backend_path /= type;
   ci::Subprocess backend(backend_path.string());
   auto params = option_checker_.GetParams(preload, pkgid);