Fix in StepWgtPatchStorageDirectory 55/108055/5
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 2 Jan 2017 13:33:54 +0000 (14:33 +0100)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Wed, 1 Feb 2017 05:39:05 +0000 (21:39 -0800)
There is one bug in checking if directory is created, and
second one in comment to this step

Change-Id: I02331ed4b40d3be9be4f217eb842a89f8b9bdfcb

src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc
src/wgt/step/filesystem/step_wgt_patch_storage_directories.h

index b14c333..2e897b8 100644 (file)
@@ -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;
index f4ab56f..035936b 100644 (file)
@@ -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 {