Create directories for TEP on sd card 99/77899/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Fri, 1 Jul 2016 11:22:14 +0000 (13:22 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Mon, 4 Jul 2016 06:41:02 +0000 (23:41 -0700)
Installing package with tep on fresh sd card should result in success.

Change-Id: I241f572ff6ef929c1cf4401f0e1172332f4d91ca

src/common/step/filesystem/step_copy_tep.cc

index b036128..b776a17 100644 (file)
@@ -60,7 +60,7 @@ Step::Status StepCopyTep::process() {
 
   if (!bf::exists(tep_path.parent_path())) {
     bs::error_code error;
-    bf::create_directory(tep_path.parent_path(), error);
+    bf::create_directories(tep_path.parent_path(), error);
     if (error) {
       LOG(ERROR) << "Cannot create tep parent directory";
       return Status::APP_DIR_ERROR;