return Status::OPERATION_NOT_ALLOWED;
}
- std::string pkg_type = pkg_query.Type();
- // rpm package installed by tpk-backend
- if (pkg_type == "rpm")
- pkg_type = "tpk";
- if (pkg_type != context_->pkg_type.get()) {
- LOG(ERROR) << "Wrong use of backend : package's type [" << pkg_query.Type()
- << "] mismatched backend [" << context_->pkg_type.get() << "]";
- return Status::OPERATION_NOT_ALLOWED;
- }
-
return Status::OK;
}