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:
parent
d3eb093041
commit
6ecdc97211
@ -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 "
|
||||||
|
Loading…
Reference in New Issue
Block a user