#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 {
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";
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;
}