18 Commits

Author SHA1 Message Date
Colin Watson
848a4645d8 Skip bug-based processing if BugsV is missing 2016-11-17 11:28:14 +01:00
Colin Watson
55dd22fe9b Use default urgency for all packages if Urgencies is missing 2016-11-17 11:28:14 +01:00
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.
2016-11-17 11:12:35 +01:00
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.
2016-11-17 11:12:35 +01:00
Niels Thykier
0664c580b0 Prefer s.x to s[X] for SourcePackage objects
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-03 18:29:09 +00:00
Niels Thykier
6de0c3408c AgePolicy: Create the (new) date file automatically
Closes: Debian/britney2#13
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-03 18:05:54 +00:00
Niels Thykier
ec21cf1342 Add an ignore-rc-bugs hint
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-03 18:05:53 +00:00
Niels Thykier
29ecbd80d0 Let the age policy register its own hints
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-03 18:05:53 +00:00
Niels Thykier
d43311be03 Support policies registering their own hints
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-03 18:05:53 +00:00
Niels Thykier
2b5d23f69f policy.py: Fix incorrect policy key
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-08 14:47:36 +00:00
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>
2016-07-05 23:17:33 +00:00
Niels Thykier
ebd947cac2 Improve the method documentation of BasePolicy
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-05 08:02:04 +00:00
Niels Thykier
63b08f8278 Optimise a few hints.search calls
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-21 12:43:36 +00:00
Niels Thykier
ce5b893a19 Prefer bugs files from the state-dir
Closes GH#2.

Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-21 12:43:36 +00:00
Niels Thykier
7e94e5567c Prefer Urgencies file from the state-dir
Partly solves GH#2

Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-21 12:43:36 +00:00
Niels Thykier
bcff800040 Move Dates into a new state-dir
Partly solves GH#2.

Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-21 12:43:36 +00:00
Niels Thykier
6d6a7ac529 Move RC bug handing into a policy
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-21 12:43:36 +00:00
Niels Thykier
5ec3aea43a Move age-handling into a separate file
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-21 12:43:36 +00:00