Ivo De Decker
62c309da07
Don't allow unversioned migrationitems to be hashed
...
Unversioned migration items match different versioned items for the same
source, so hashing them will not produce a correct result.
Closes : #945471
5 years ago
Ivo De Decker
988b33d0ba
Add allow-uninst hint
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
5 years ago
Ivo De Decker
208726f538
Add BuiltOnBuilddPolicy
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago
Niels Thykier
c9d523da93
Remove trailing whitespace
...
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Ivo De Decker
7090c23efc
Expose architecture and suite property for hints
...
Also allow searching based on these properties.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
6 years ago
Niels Thykier
6174d2c3f9
Create a MigrationItemFactory and migrate most code to use it
...
This is a step towards making migration unit-testable. This step
reduces the need for global state (in the MigrationItem class as class
fields) and with another step we can remove the global state entirely
and enable unit tests to create migration items without having to
worry about other unit tests.
Signed-off-by: Niels Thykier <niels@thykier.net>
6 years ago
Niels Thykier
32b2ee326a
Use lazy evaluation of format arguments in logging
...
Signed-off-by: Niels Thykier <niels@thykier.net>
7 years ago
Niels Thykier
ac69b3b5c7
Migrate hint parser to fully use logging
...
Signed-off-by: Niels Thykier <niels@thykier.net>
7 years ago
Niels Thykier
ed2a34e897
hints.py: Fix incorrect documentation of min_args parameter
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
ee12b76885
tests: Add test for some invalid hints
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
a14ced6403
Drop now unused "from __future__" imports
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
9bc94db01c
Refactor all modules into a britney2 subdir
...
That way they are all contained.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago