31 Commits

Author SHA1 Message Date
Colin Watson
60c4a4cf20
Add a --distribution option 2020-06-11 13:00:03 +01:00
Colin Watson
4ece0b9dba
Only issue "From wrong source" for binaries not at the same version in testing
Same-version could happen for merged binaries in partial-unstable mode.
2020-06-11 13:00:03 +01:00
Ivo De Decker
920d82445d Add allow-smooth-update hint
Hint to allow smooth update, even if the section isn't allowed in the
configuration.

Note that this takes the source name and the source version IN TESTING
of the binaries that must be allowed to stay around to allow a smooth
update.
2020-04-01 16:37:56 +00:00
Ivo De Decker
4a8fb58f91 Use versioned items in excusefinder 2020-01-30 18:40:24 +01:00
Ivo De Decker
e70457f137 Add logger to ExcuseFinder 2020-01-30 18:40:24 +01:00
Ivo De Decker
055f0f07e5 Add MigrationItem to Excuse 2020-01-30 15:09:17 +00:00
Ivo De Decker
a425e32984 Remove _excuse_unsat_deps
This should now be handled by the depends policy.
2020-01-30 15:09:17 +00:00
Ivo De Decker
2ccb056fa1 validate list of valid excuses 2020-01-30 15:09:12 +00:00
Ivo De Decker
8b6638c566 Specify dependencies between excuses based on packages
Rework the dependencies between excuses.

Dependencies are specified based on packages (source or binary). Based
on these packages, dependencies on other excuses (that have these
packages) are calculated.

As with package dependencies, dependencies between excuses can contain
alternatives.

Each alternative can satisfy the dependency, so the excuse only becomes
invalid if all of the alternatives of a specific dependency are
invalidated.

Tracking of the alternatives and their validity is moved to separate
objects.
2020-01-30 15:09:12 +00:00
Ivo De Decker
b5285f21d7 Track packages (source and binary) for excuses 2020-01-30 15:09:11 +00:00
Ivo De Decker
6ca84132f9 Excuses: remove unused sane_deps
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2020-01-03 19:43:47 +00:00
Ivo De Decker
a1debec1a8 fix codestyle issues in excusefinder.py 2019-09-04 11:44:15 +00:00
Ivo De Decker
4cbb691dfe Remove broken depends code in _should_upgrade_src
The code that was supposed to check uninstallability of existing binaries was
broken:
- it only checked arch: all on nobreakall archs, not arch any
- it checked if the new binary was in testing (this never happens)
- it doesn't work when binaries from both unstable and tpu are needed

Note that _excuse_unsat_deps() now handles nobreakall correctly.
2019-09-04 11:44:14 +00:00
Ivo De Decker
ccd30f96fd switch depends to detailed excuse info
don't show information about unsatisfiable depends that is not blocking
migration:
* arch all not on nobreakall arch
* arch any or arch all on breakarch
2019-09-04 11:44:13 +00:00
Ivo De Decker
a4f7e7433e switch impossible depends to detailed excuse info 2019-09-04 11:44:13 +00:00
Ivo De Decker
03856a3876 switch missing builds to detailed excuse info
Also remove the list of old binaries from the excuse.
2019-09-04 11:44:13 +00:00
Ivo De Decker
e25ca70427 switch removal to detailed excuse info
Also, set verdict to REJECTED_PERMANENTLY explicitly. This was already done
implicitly, because that is the default and it was never set to anything else.
2019-09-04 11:44:13 +00:00
Ivo De Decker
e245891d36 add reason for missing build 2019-09-04 11:44:12 +00:00
Ivo De Decker
cda4655b83 switch newer in testing to detailed excuse info
Also, set verdict to REJECTED_PERMANENTLY explicitly. This was already done
implicitly, because that is the default and it was never set to anything else.
2019-09-04 11:44:12 +00:00
Ivo De Decker
e144cbc743 switch wrong versions in should_upgrade_srcarch to detailed excuse info 2019-09-04 11:44:12 +00:00
Ivo De Decker
56dad96c2b switch unimportant info in should_upgrade_srcarch to detailed excuse info 2019-09-04 11:44:11 +00:00
Ivo De Decker
4b40b11b07 switch force info to detailed excuse info 2019-09-04 11:44:11 +00:00
Ivo De Decker
409deee905 switch missing builds to detailed excuse info 2019-09-04 11:44:11 +00:00
Ivo De Decker
63a9d786a8 switch no binaries to detailed excuse info 2019-09-04 11:44:11 +00:00
Paul Gevers
eb3fb3ef6e
Add support for partial source suites via options 2019-04-27 22:35:09 +02:00
Niels Thykier
f4ecd86000
Pass migration items to policies (instead of src + suite)
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 09:52:33 +00:00
Niels Thykier
97abb6f467
ExcuseFinder: Reduce the number of migration items created
With this change, we reduce the number of migration items creted only
to be discarded because the item is not relevant/actionable.

Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 06:58:05 +00:00
Niels Thykier
78d120114f
ExcuseFinder: Merge two loops
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 06:58:04 +00:00
Niels Thykier
9a0a99abc9
ExcuseFinder: Have _should_* work on migration items
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 06:58:03 +00:00
Niels Thykier
d9f9c6d4a9
Let ExcuseFinder create migration items
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 06:58:02 +00:00
Niels Thykier
6dde43a339
Create an ExcuseFinder class for computing relevant excuses
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 06:58:00 +00:00