From: Ilho Kim Date: Thu, 23 Jan 2020 01:41:39 +0000 (+0900) Subject: Change clean operations not to return failure X-Git-Tag: accepted/tizen/unified/20200217.213836~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F223115%2F3;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Change clean operations not to return failure Change-Id: Ica687fe9393e7adff0bed3107b597df9472a2fab Signed-off-by: Ilho Kim --- diff --git a/src/wgt/step/filesystem/step_wgt_update_package_directory.cc b/src/wgt/step/filesystem/step_wgt_update_package_directory.cc index 76396db..efe6be8 100644 --- a/src/wgt/step/filesystem/step_wgt_update_package_directory.cc +++ b/src/wgt/step/filesystem/step_wgt_update_package_directory.cc @@ -108,14 +108,8 @@ ci::Step::Status StepWgtUpdatePackageDirectory::process() { ci::Step::Status StepWgtUpdatePackageDirectory::clean() { bf::path backup_path = ci::GetBackupPathForPackagePath(context_->GetPkgPath()); - if (bf::exists(backup_path)) { - bs::error_code error; - bf::remove_all(backup_path, error); - if (error) { - LOG(ERROR) << "Failed to remove backup directories"; - return Status::APP_DIR_ERROR; - } - } + if (bf::exists(backup_path)) + ci::RemoveAll(backup_path); return Status::OK; }