transitivity in the requirements
This commit is contained in:
@ -377,6 +377,7 @@ def apply_requires(opt, config):
|
||||
"{1} {2}").format(opt._name, path, properties), properties)
|
||||
#transitive action, force expected
|
||||
value = expected
|
||||
inverse = False
|
||||
except AttributeError:
|
||||
raise AttributeError(_("required option not found: "
|
||||
"{0}").format(path))
|
||||
@ -386,6 +387,8 @@ def apply_requires(opt, config):
|
||||
else:
|
||||
setting.append(action)
|
||||
matches = True
|
||||
# the calculation cannot be carried out
|
||||
break
|
||||
# no requirement has been triggered, then just reverse the action
|
||||
if not matches:
|
||||
if inverse:
|
||||
|
Reference in New Issue
Block a user