Don't create mount path in StepMountUnpacked 40/90440/4
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 30 Sep 2016 05:15:11 +0000 (14:15 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 10 Oct 2016 10:24:14 +0000 (03:24 -0700)
Mount path will be created by deviced as a symlink.

Change-Id: Ibe2804a9abcc0491836f3115517db52d9a80d202
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/common/step/mount/step_mount_unpacked.cc
src/common/tzip_interface.cc

index c5892b9..f7a80e3 100644 (file)
@@ -21,11 +21,6 @@ namespace mount {
 
 Step::Status StepMountUnpacked::process() {
   bf::path tmp_dir = GenerateTmpDir(context_->root_application_path.get());
-
-  if (!CreateDir(tmp_dir)) {
-    LOG(ERROR) << "Failed to create temp directory: " << tmp_dir;
-    return Step::Status::APP_DIR_ERROR;
-  }
   context_->unpacked_dir_path.set(tmp_dir);
 
   TzipInterface tzip(context_->unpacked_dir_path.get());
index 32e2aa3..967dd8d 100644 (file)
@@ -50,6 +50,8 @@ class TzipInterface::Pimpl {
     }
 
     if (bf::exists(mount_path_)) {
+      LOG(WARNING) << "Mount path(" << mount_path_ << ") already exists! "
+                   << "We will remove it...";
       bf::remove(mount_path_);
     }