}
Step::Status StepUpdateTep::undo() {
- RemoveAll(context_->tep_path.get());
+ const bf::path& remove_path = context_->tep_path.get();
+ RemoveAll(context_->old_manifest_data.get()->tep_name ?
+ remove_path : remove_path.parent_path());
return Status::OK;
}