Remove some unused fields and methods in excuse

In the unsat_deps case, it was used to update a field in the excuse,
but the field was never read anywhere.

Signed-off-by: Niels Thykier <niels@thykier.net>
bzr-import-20160707
Niels Thykier 13 years ago
parent 9a7274db93
commit 9bf3224bd1

@ -1067,8 +1067,6 @@ class Britney(object):
# if no package can satisfy the dependency, add this information to the excuse
if len(packages) == 0:
excuse.addhtml("%s/%s unsatisfiable %s: %s" % (pkg, arch, type, block_txt.strip()))
if arch not in self.options.break_arches.split():
excuse.add_unsat_dep(arch)
continue
# for the solving packages, update the excuse to add the dependencies

@ -44,8 +44,6 @@ class Excuse(object):
self.name = name
self.ver = ("-", "-")
self.maint = None
self.pri = None
self.date = None
self.urgency = None
self.daysold = None
self.mindays = None
@ -57,7 +55,6 @@ class Excuse(object):
self.deps = {}
self.sane_deps = []
self.break_deps = []
self.unsat_deps = {}
self.bugs = []
self.htmlline = []
@ -90,14 +87,6 @@ class Excuse(object):
"""Set the section of the package"""
self.section = section
def set_priority(self, pri):
"""Set the priority of the package"""
self.pri = pri
def set_date(self, date):
"""Set the date of upload of the package"""
self.date = date
def set_urgency(self, date):
"""Set the urgency of upload of the package"""
self.urgency = date
@ -116,10 +105,6 @@ class Excuse(object):
if (name, arch) not in self.break_deps:
self.break_deps.append( (name, arch) )
def add_unsat_dep(self, arch):
"""Add a flag for unsatisfied dependencies"""
self.unsat_deps[arch] = True
def invalidate_dep(self, name):
"""Invalidate dependency"""
if name not in self.invalid_deps: self.invalid_deps.append(name)

Loading…
Cancel
Save