Change-Id: I458c83f1683ffc07e5a8a7cf8e204a7be95c1806
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
}
Step::Status StepCopy::undo() {
- if (context_->external_storage)
+ if (context_->external_storage) {
context_->external_storage->Abort();
+ } else if (context_->storage.get() == Storage::EXTENDED) {
+ bf::path install_path =
+ bf::path(GetExtendedRootAppPath(context_->uid.get())) /
+ context_->pkgid.get();
+ RemoveAll(install_path);
+ }
if (!RemoveAll(context_->pkg_path.get()))
return Status::APP_DIR_ERROR;