From fd5d302cd3fab2abcf1e20b4ad015465ad9baf2e Mon Sep 17 00:00:00 2001 From: Bartlomiej Kunikowski Date: Mon, 2 Jan 2017 14:33:54 +0100 Subject: [PATCH] Fix in StepWgtPatchStorageDirectory There is one bug in checking if directory is created, and second one in comment to this step Change-Id: I02331ed4b40d3be9be4f217eb842a89f8b9bdfcb (cherry picked from commit bbed89f23a2d930cf87b1f71c2fc7131e5967131) --- src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc | 2 +- src/wgt/step/filesystem/step_wgt_patch_storage_directories.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc b/src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc index b14c333..2e897b8 100644 --- a/src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc +++ b/src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc @@ -43,7 +43,7 @@ bool StepWgtPatchStorageDirectories::ShareDirFor3x() { bf::path shared_dir = context_->pkg_path.get() / kSharedLocation; if (!bf::exists(shared_dir)) { bs::error_code error; - bf::create_directory(shared_dir); + bf::create_directory(shared_dir, error); if (error) { LOG(ERROR) << "Failed to create directory: " << shared_dir; return false; diff --git a/src/wgt/step/filesystem/step_wgt_patch_storage_directories.h b/src/wgt/step/filesystem/step_wgt_patch_storage_directories.h index f4ab56f..035936b 100644 --- a/src/wgt/step/filesystem/step_wgt_patch_storage_directories.h +++ b/src/wgt/step/filesystem/step_wgt_patch_storage_directories.h @@ -14,7 +14,7 @@ namespace filesystem { /** * \brief Installation (WGT). * Responsible for copying widgets shared/ directory into package's - * shared/ directory for tizen widget with api version > 3.0 + * shared/ directory for tizen widget with api version >= 3.0 */ class StepWgtPatchStorageDirectories : public common_installer::Step { -- 2.7.4