#include "common/utils/file_util.h"
namespace bf = boost::filesystem;
-namespace bs = boost::system;
namespace common_installer {
namespace configuration {
// installation mode and gain "system" background category
context_->privilege_level.set(PrivilegeLevel::PLATFORM);
- if (!bf::exists(context_->pkg_path.get())) {
- LOG(INFO) << "[ManifestDirect] Create pkg_path("
- << context_->pkg_path.get()
- << ") for package("
- << context_->pkgid.get() << ")";
- bs::error_code error;
- bf::create_directories(package_directory, error);
- if (error) {
- LOG(ERROR) << "Cannot create directory: "
- << package_directory.string();
- return Step::Status::APP_DIR_ERROR;
- }
- }
break;
}
default: