Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_migrate_legacy_external_image.cc
index 07e3002..1c4f3e1 100644 (file)
@@ -4,16 +4,16 @@
 
 #include "common/step/filesystem/step_migrate_legacy_external_image.h"
 
-#include <boost/filesystem.hpp>
 #include <app2ext_interface.h>
 #include <tzplatform_config.h>
 
+#include <filesystem>
 #include <string>
 
 #include "common/security_registration.h"
 #include "common/utils/pkgmgr_query.h"
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 namespace {
 
@@ -38,7 +38,7 @@ Step::Status StepMigrateLegacyExtImage::precheck() {
     LOG(ERROR) << "pkg_path attribute is empty";
     return Step::Status::INVALID_VALUE;
   }
-  if (!boost::filesystem::exists(context_->GetPkgPath())) {
+  if (!std::filesystem::exists(context_->GetPkgPath())) {
     LOG(ERROR) << "pkg_path ("
                << context_->GetPkgPath()
                << ") path does not exist";
@@ -81,7 +81,7 @@ Step::Status StepMigrateLegacyExtImage::process() {
                         uid, &error_message)) {
     if (!error_message.empty()) {
       LOG(ERROR) << "error_message: " << error_message;
-      on_error(Status::SECURITY_ERROR, error_message);
+      on_error_->on_error(Status::SECURITY_ERROR, error_message);
     }
     return Status::SECURITY_ERROR;
   }