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
ubuntu/rebased
Ivo De Decker 5 years ago
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 not packages:
excuse.addhtml("%s/%s unsatisfiable Depends: %s" % (pkg, arch, block_txt.strip()))
excuse.add_unsatisfiable_dep(block_txt.strip(), arch)
excuse.addreason("depends")
# 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.addreason("depends")
# TODO this should only be considered a failure if it
# is a regression wrt testing
is_all_ok = False
continue

Loading…
Cancel
Save