mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 03:41:12 +00:00
Rename new excuse field and method to unsatisfiable_on_archs and add_unsatisfiable_on_arch
This commit is contained in:
parent
a16e4e5a55
commit
089c4f6e57
@ -1058,7 +1058,7 @@ class Britney(object):
|
||||
if not packages:
|
||||
excuse.addhtml("%s/%s unsatisfiable Depends: %s" % (pkg, arch, block_txt.strip()))
|
||||
excuse.addreason("depends")
|
||||
excuse.add_depends_breaks_arch(arch)
|
||||
excuse.add_unsatisfiable_on_arch(arch)
|
||||
if arch not in self.options.break_arches:
|
||||
is_all_ok = False
|
||||
continue
|
||||
|
@ -78,7 +78,7 @@ class Excuse(object):
|
||||
self.deps = {}
|
||||
self.sane_deps = []
|
||||
self.break_deps = []
|
||||
self.break_arch = []
|
||||
self.unsatisfiable_on_archs = []
|
||||
self.bugs = []
|
||||
self.newbugs = set()
|
||||
self.oldbugs = set()
|
||||
@ -140,10 +140,10 @@ class Excuse(object):
|
||||
if (name, arch) not in self.break_deps:
|
||||
self.break_deps.append( (name, arch) )
|
||||
|
||||
def add_depends_breaks_arch(self, arch):
|
||||
"""Add an arch that breaks by dependency"""
|
||||
if arch not in self.break_arch:
|
||||
self.break_arch.append(arch)
|
||||
def add_unsatisfiable_on_arch(self, arch):
|
||||
"""Add an arch that has unsatisfiable dependencies"""
|
||||
if arch not in self.unsatisfiable_on_archs:
|
||||
self.unsatisfiable_on_archs.append(arch)
|
||||
|
||||
def invalidate_dep(self, name):
|
||||
"""Invalidate dependency"""
|
||||
|
@ -197,7 +197,7 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
if arch in excuse.missing_builds:
|
||||
verdict = PolicyVerdict.REJECTED_TEMPORARILY
|
||||
self.log('%s hasn''t been built on arch %s, delay autopkgtest there' % (source_name, arch))
|
||||
elif arch in excuse.break_arch:
|
||||
elif arch in excuse.unsatisfiable_on_archs:
|
||||
verdict = PolicyVerdict.REJECTED_TEMPORARILY
|
||||
self.log('%s is uninstallable on arch %s, delay autopkgtest there' % (source_name, arch))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user