Colin Watson
55dd22fe9b
Use default urgency for all packages if Urgencies is missing
8 years ago
Martin Pitt
b3ea41d057
Move updating of excuses into policies
...
It is unwieldy to have one half of output data generation in the policy but not
the other half of updating the excuse. Now that apply_policy() gets the excuse
object as argument we can move everything there.
8 years ago
Martin Pitt
1e9a16499a
Pass excuse to BasePolicy.apply_policy()
...
This allows tests to check whether there are any missing builds or old
binaries, so that expensive actions such as "trigger an autopkgtest" are not
done too early/in vain.
8 years ago
Niels Thykier
0664c580b0
Prefer s.x to s[X] for SourcePackage objects
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
6de0c3408c
AgePolicy: Create the (new) date file automatically
...
Closes : Debian/britney2#13
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
ec21cf1342
Add an ignore-rc-bugs hint
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
29ecbd80d0
Let the age policy register its own hints
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
d43311be03
Support policies registering their own hints
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
2b5d23f69f
policy.py: Fix incorrect policy key
...
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
58b73c1906
Simplify policy writing a bit
...
Refactor the handling of the policy info code, so every policy does
not have to implement the same boilerplate code.
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
ebd947cac2
Improve the method documentation of BasePolicy
...
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
63b08f8278
Optimise a few hints.search calls
...
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
ce5b893a19
Prefer bugs files from the state-dir
...
Closes GH#2.
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
7e94e5567c
Prefer Urgencies file from the state-dir
...
Partly solves GH#2
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
bcff800040
Move Dates into a new state-dir
...
Partly solves GH#2.
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
6d6a7ac529
Move RC bug handing into a policy
...
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago
Niels Thykier
5ec3aea43a
Move age-handling into a separate file
...
Signed-off-by: Niels Thykier <niels@thykier.net>
9 years ago