Colin Watson
73650fc12c
Change date format to seconds-since-epoch
8 years ago
Colin Watson
78a4959597
Allow blocking uploads by way of bugs with the block-proposed tag set
8 years ago
Colin Watson
75dcfddccd
Make sure that containing directories exist before writing output files
...
We don't use os.makedirs(dir, exist_ok=True) as that is too strict: it fails if
the directory already exists with different permissions (e. g. with 775). Thus
introduce a helper function ensuredir().
8 years ago
Colin Watson
b549788210
Skip bug-based processing if BugsV is missing
8 years ago
Colin Watson
475f8366b1
Use default urgency for all packages if Urgencies is missing
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