Allow piuparts policy to be disabled by config

wip/linux-policy
Iain Lane 5 years ago committed by Iain Lane
parent c436aafda7
commit b5bcb4c961
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -511,6 +511,7 @@ class Britney(object):
self._policy_engine.add_policy(DependsPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(DependsPolicy(self.options, self.suite_info))
self._policy_engine.add_policy(RCBugPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(RCBugPolicy(self.options, self.suite_info))
if getattr(self.options, 'piuparts_enable', 'yes') == 'yes':
self._policy_engine.add_policy(PiupartsPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(PiupartsPolicy(self.options, self.suite_info))
if getattr(self.options, 'adt_enable') == 'yes': if getattr(self.options, 'adt_enable') == 'yes':
self._policy_engine.add_policy(AutopkgtestPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(AutopkgtestPolicy(self.options, self.suite_info))

Loading…
Cancel
Save