Fix requirements-check error message

If local exclusions are not a subset of global exclusions, we probably
want to identify any item in local exclusions that are not in global
exclusions, instead of the opposite.

Change-Id: Id8e5a423288ac6db3b836ae553d766e5f04b4dec
This commit is contained in:
Pierre Riteau 2021-05-31 16:31:41 +02:00
parent d3eb093041
commit 6ecdc97211

View File

@ -121,7 +121,7 @@ def _is_requirement_in_global_reqs(local_req, global_reqs, allow_3_only=False):
if req_exclusions.issubset(global_exclusions): if req_exclusions.issubset(global_exclusions):
return True return True
else: else:
difference = global_exclusions - req_exclusions difference = req_exclusions - global_exclusions
print( print(
"ERROR: Requirement for package {} " "ERROR: Requirement for package {} "
"excludes a version not excluded in the " "excludes a version not excluded in the "