Remove unpacked dir when finished copying 65/170665/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 20 Feb 2018 08:10:30 +0000 (17:10 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 21 Feb 2018 08:39:58 +0000 (08:39 +0000)
Change-Id: I5dd9d8e91123caa0d70aa3a4717eaaaf4b08409d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit 52b933a3a19dbde9297ea12624479156c88cd57b)

src/common/step/backup/step_copy_backup.cc

index 666aefa..a78021b 100644 (file)
@@ -259,6 +259,7 @@ bool StepCopyBackup::NewContent() {
   LOG(INFO) << "Successfully move: " << context_->unpacked_dir_path.get()
             << " to: " << install_path_ << " directory";
 
+  ci::RemoveAll(context_->unpacked_dir_path.get());
   return true;
 }