When some installation process failing, there may
exists invalid manifest file, so recovery process
should check this situation.
Change-Id: Iab06f8748731def99703be5cc6030b4828c72053
}
parser_.reset(new tpk::parse::TPKConfigParser());
if (!parser_->ParseManifest(path_)) {
+ if (manifest_location_ == ManifestLocation::RECOVERY) {
+ LOG(DEBUG) << "Manifest for recovery is invalid";
+ bf::remove(path_);
+ return Step::Status::OK;
+ }
LOG(ERROR) << "[Parse] Parse failed. " << parser_->GetErrorMessage();
return Step::Status::PARSE_ERROR;
}