transitivity in the requirements

This commit is contained in:
gwen
2013-06-10 15:19:00 +02:00
parent 418de157e8
commit 1c70a07d7e
2 changed files with 38 additions and 3 deletions

View File

@ -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: