1340 Commits

Author SHA1 Message Date
Niels Thykier
c08ea9d33c
Remove unused local variable
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-10-26 07:38:26 +00:00
Niels Thykier
ea14c7237d
Remove obsolete file consts.py
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-10-26 07:16:39 +00:00
Niels Thykier
2a1e4386fd
Remove optimization invalidated by allow-uninst hint
The optimizations relies on assumptions that are not valid with the
allow-uninst that has not been corrected.  When these assumptions, we
end up with invalid nuninst counters.

Signed-off-by: Niels Thykier <niels@thykier.net>
2019-10-26 07:07:55 +00:00
Niels Thykier
a6e3581195
SuiteLoader: Support Release files only "Codename" fields
The spec for Release files says that (at least) one of "Suite" and
"Codename" will be defined.  This implies that "Suite" is optional
in some cases and SuiteLoader now correctly falls back to using
"Codename" in that case.

Closes: https://bugs.debian.org/942104
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-10-23 19:29:57 +00:00
Matthias Klumpp
f2f45320a8 Don't fail if faux-packages have multiple provides entries 2019-10-06 19:29:23 +02:00
Julien Cristau
042ce9200f doc: add missing end quote 2019-09-27 21:43:11 +02:00
Ivo De Decker
75287427a5 Document allow-archall-maintainer-upload and allow-uninst hints
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-21 12:32:03 +00:00
Ivo De Decker
93b46dde0d Allow new uninstallables from allow-uninst hint
When an allow-uninst hint is added for an unversioned binary package, items
are allowed to migrate, even if they make that binary package uninstallable
(on the architecture specified in the hint, if one was specified, or on all
architectures otherwise).

Using this hint should avoid using force-hint to allow specific breakage.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-14 11:52:19 +00:00
Ivo De Decker
988b33d0ba Add allow-uninst hint
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-14 11:07:38 +00:00
Ivo De Decker
4defca4cc1 Abort when do_all fails without transaction to rollback
When do_all fails, and there is no transaction to rollback, we will probably
leave a broken state behind. This codepath probably isn't triggered unless
something else is broken.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-14 10:51:41 +00:00
Ivo De Decker
4de569114a Fix excuses output for package with urgent hint
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-04 19:51:34 +00:00
Ivo De Decker
4a3f98657d Remove unimportant message from excuses
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-04 17:34:34 +02:00
Ivo De Decker
13b62f8da5 Remove obsolete addhtml() 2019-09-04 12:02:52 +00:00
Ivo De Decker
f202601b81 fix codestyle issue in test_autopkgtest.py
This issue only shows up in the bullseye test.
2019-09-04 12:02:52 +00:00
Ivo De Decker
2bde180d18 fix codestyle issues in policies/__init_.py 2019-09-04 11:44:15 +00:00
Ivo De Decker
a1debec1a8 fix codestyle issues in excusefinder.py 2019-09-04 11:44:15 +00:00
Ivo De Decker
3f9092f94b fix codestyle issues in excuse.py 2019-09-04 11:44:14 +00:00
Ivo De Decker
57f9c98241 Fix some verdict descriptions 2019-09-04 11:44:14 +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
8cff83a8c6 remove obsolete message in bugs policy 2019-09-04 11:44:13 +00:00
Ivo De Decker
68b051d36d switch bugs policy to detailed excuse info
Also, simplify the logic.
2019-09-04 11:44:13 +00:00
Ivo De Decker
48801054a2 switch autopkgtest policy to detailed excuse info 2019-09-04 11:44:13 +00:00
Ivo De Decker
8c44a78948 switch block policy to detailed excuse info 2019-09-04 11:44:12 +00:00
Ivo De Decker
3d0fdae9d1 switch build-dep policy to detailed excuse info 2019-09-04 11:44:12 +00:00
Ivo De Decker
e245891d36 add reason for missing build 2019-09-04 11:44:12 +00:00
Ivo De Decker
bb2512c948 add extra info to buildd policy 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
90cb743410 switch rdep invalidation to detailed excuse info 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
Ivo De Decker
3576ed6667 switch buildd policy to detailed excuse info 2019-09-04 11:44:11 +00:00
Ivo De Decker
deb27e7ec0 switch built-using policy to detailed excuse info 2019-09-04 11:44:11 +00:00
Ivo De Decker
76f33a5fc2 switch piuparts policy to detailed excuse info 2019-09-04 11:44:11 +00:00
Ivo De Decker
370bf52d56 switch age policy to detailed excuse info 2019-09-04 11:44:10 +00:00
Ivo De Decker
b70d1d09d7 keep track of verdict when invalidating deps 2019-09-04 11:44:10 +00:00
Ivo De Decker
abaa4c7205 render html excuse based on 'text'
The html rendered is horrible, but we're stuck due to the broken grep-excuses
in stretch.
2019-09-04 11:44:10 +00:00
Ivo De Decker
065dbd26ee Add functions for details excuse info 2019-09-04 11:44:10 +00:00
Ivo De Decker
aa02edcbfb ci: switch sid tests to bullseye and allow failure
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-03 23:50:00 +02:00
Ivo De Decker
19392f63c2 fix codestyle issues in policy_.py 2019-09-03 23:50:00 +02:00
Ivo De Decker
5890cb914e Fix codestyle issues is britney.py
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-02 22:22:04 +00:00
Ivo De Decker
7fdbfcbeb2 Check version of cruft removal item
If the cruft removal item has a different version than the binary currently in
testing, then the cruft item was replaced since it was added, or it was added
in error. In this case, the item should not be processed.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-02 22:21:52 +00:00
Ivo De Decker
e3af8993be compute_groups: rename badly named source_name
When the item is a cruft removal item, the variable contains the binary name,
not the source name. So rename it to item_package and set source_name, to the
source in both cases.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-02 19:51:03 +00:00
Ivo De Decker
fdf273ad05 Log initial list of cruft items added to the list of items
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-02 19:04:44 +00:00