mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-22 16:01:35 +00:00
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
This commit is contained in:
parent
a4f7e7433e
commit
ccd30f96fd
@ -78,11 +78,21 @@ class ExcuseFinder(object):
|
|||||||
|
|
||||||
# if no package can satisfy the dependency, add this information to the excuse
|
# if no package can satisfy the dependency, add this information to the excuse
|
||||||
if not packages:
|
if not packages:
|
||||||
excuse.addhtml("%s/%s unsatisfiable Depends: %s" % (pkg, arch, block_txt.strip()))
|
# still list this dep as unsatifiable, even if it is arch:all
|
||||||
|
# on a non-nobreakall arch, because the autopkgtest policy
|
||||||
|
# uses this to determine of the autopkgtest can run.
|
||||||
|
# TODO this should probably be handled in a smarter way
|
||||||
|
excuse.add_unsatisfiable_on_arch(arch)
|
||||||
|
if binary_u.architecture != 'all' or arch in self.options.nobreakall_arches:
|
||||||
|
if arch not in self.options.break_arches:
|
||||||
|
# when the result of this function is changed to
|
||||||
|
# actually block items, this should be changed to
|
||||||
|
# add_verdict_info
|
||||||
|
excuse.addinfo("%s/%s unsatisfiable Depends: %s" % (pkg, arch, block_txt.strip()))
|
||||||
excuse.add_unsatisfiable_dep(block_txt.strip(), arch)
|
excuse.add_unsatisfiable_dep(block_txt.strip(), arch)
|
||||||
excuse.addreason("depends")
|
excuse.addreason("depends")
|
||||||
excuse.add_unsatisfiable_on_arch(arch)
|
# TODO this should only be considered a failure if it
|
||||||
if arch not in self.options.break_arches:
|
# is a regression wrt testing
|
||||||
is_all_ok = False
|
is_all_ok = False
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user