bf::path backup_path = GetBackupPathForPackagePath(context_->pkg_path.get());
if (!MoveDir(context_->pkg_path.get(), backup_path)) {
LOG(ERROR) << "Cannot remove widget files from its location";
- return Status::APP_DIR_ERROR;
}
LOG(DEBUG) << "Removed directory: " << context_->pkg_path.get();
return Status::OK;
return Status::MANIFEST_NOT_FOUND;
}
- if (context_->backup_xml_path.get().empty()) {
- LOG(ERROR) << "Backup xml path was not set but is required";
- return Status::INVALID_VALUE;
- }
-
// TODO(p.sikorski) check context_->uid.get()
return Step::Status::OK;
// Prepare certificate info for rollback operations
if (!BackupCertInfo()) {
LOG(ERROR) << "Failed to backup cert info";
- return Status::CERT_ERROR;
}
if (!UnregisterAppInPkgmgr(context_->manifest_data.get(),
context_->uid.get(),
context_->request_mode.get())) {
LOG(ERROR) << "Failed to unregister package into database";
- return Status::REGISTER_ERROR;
}
// remove manifest file