Fix in StepWgtPatchStorageDirectory 87/113787/2 accepted/tizen/3.0/common/20170214.180732 accepted/tizen/3.0/ivi/20170214.092337 accepted/tizen/3.0/mobile/20170214.092146 accepted/tizen/3.0/tv/20170214.092234 accepted/tizen/3.0/wearable/20170214.092311 submit/tizen_3.0/20170213.113017
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 2 Jan 2017 13:33:54 +0000 (14:33 +0100)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 9 Feb 2017 05:32:17 +0000 (21:32 -0800)
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
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 {