summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjongmyeongko <jongmyeong.ko@samsung.com>2017-07-17 13:56:42 +0900
committerjongmyeongko <jongmyeong.ko@samsung.com>2017-07-17 13:56:42 +0900
commit14a1215d61ad0e5f8d5af147944a9e3dde8f1b18 (patch)
treee27198bc26046586e85797d59528d30bbb98ec8f
parentc0b81d7d4896bfcc0c0c5ffb325a89aead895af1 (diff)
downloadapp-installers-14a1215d61ad0e5f8d5af147944a9e3dde8f1b18.tar.gz
app-installers-14a1215d61ad0e5f8d5af147944a9e3dde8f1b18.tar.bz2
app-installers-14a1215d61ad0e5f8d5af147944a9e3dde8f1b18.zip
Remove backup dir for shared/res feature of web app
This step is called at the recovery request. Change-Id: I211d17f59d92f989862ef1affd090197aa72d03e Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
-rw-r--r--src/common/step/filesystem/step_remove_temporary_directory.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/step/filesystem/step_remove_temporary_directory.cc b/src/common/step/filesystem/step_remove_temporary_directory.cc
index 817c781d..e06c8837 100644
--- a/src/common/step/filesystem/step_remove_temporary_directory.cc
+++ b/src/common/step/filesystem/step_remove_temporary_directory.cc
@@ -27,11 +27,14 @@ void StepRemoveTemporaryDirectory::RemoveFiles() {
bf::path unpack_dir_path = context_->unpacked_dir_path.get();
bf::path patch_dir_path = unpack_dir_path;
patch_dir_path += ".patch";
+ bf::path shared_res_backup_dir_path = unpack_dir_path;
+ shared_res_backup_dir_path += ".SharedRes";
if (unpack_dir_path.empty())
return;
boost::system::error_code error_code;
bf::remove_all(unpack_dir_path, error_code);
bf::remove_all(patch_dir_path, error_code);
+ bf::remove_all(shared_res_backup_dir_path, error_code);
return;
}
} // namespace filesystem