Niels Thykier
c741b03aaf
Make PolicyVerdict ordered/comparable
...
This shortens the annyoing "a.value < b.value" to "a < b".
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-03-06 19:07:17 +00:00
Ivo De Decker
15e5228669
Add src_policy option to policies.
...
The src_policy defines wether, for source items, the source policy should be
run (RUN_SRC, the default), the arch policy should be run on every arch
(RUN_ON_EVERY_ARCH_ONLY), or both (RUN_SRC_AND_EVERY_ARCH).
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-01-17 18:40:39 +00:00
Ivo De Decker
49d9a38d25
Skip unimplemented policies in excuses
...
Return PolicyVerdict.NOT_APPLICABLE, which means no data is added to
policy_info in the excuse.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-01-02 00:34:49 +00:00
Niels Thykier
b0e193d955
Add missing @property - otherwise "verdict.is_blocked" is always True
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-05 06:56:53 +00:00
Niels Thykier
c537f0554f
Move PolicyVerdict to britney2.policies
2017-11-02 19:31:11 +00:00
Niels Thykier
9bc94db01c
Refactor all modules into a britney2 subdir
...
That way they are all contained.
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-11-13 08:02:00 +00:00