Fix bug on StepDeltaPatch step 38/142738/4
authorjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 7 Aug 2017 07:04:10 +0000 (16:04 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 7 Aug 2017 07:37:19 +0000 (16:37 +0900)
invalid condition-check

Change-Id: I193b2e0a216b8b38b7cb60efa2fd4be426a3c7d8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/common/step/filesystem/step_delta_patch.cc

index a3117f2..1af35dc 100644 (file)
@@ -165,7 +165,7 @@ bool ApplyAddedFiles(const delta::DeltaInfo& info, const bf::path& app_dir,
     } else {
       if (!ci::Remove(target))
         return false;
-      if (bf::exists(target.parent_path())) {
+      if (!bf::exists(target.parent_path())) {
         bf::create_directories(target.parent_path(), error);
         if (error) {
           LOG(ERROR) << "Cannot create directory: " << target.parent_path();