mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 02:21:33 +00:00
Remove unused assignments/parameters
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
a5aad84699
commit
bd5b3ac4ec
@ -2514,7 +2514,6 @@ class Britney(object):
|
|||||||
# a package is obsolete if none of the binary packages in testing
|
# a package is obsolete if none of the binary packages in testing
|
||||||
# are built by it
|
# are built by it
|
||||||
self.__log("> Removing obsolete source packages from testing", type="I")
|
self.__log("> Removing obsolete source packages from testing", type="I")
|
||||||
removals = []
|
|
||||||
# local copies for performance
|
# local copies for performance
|
||||||
sources = self.sources['testing']
|
sources = self.sources['testing']
|
||||||
binaries = self.binaries['testing']
|
binaries = self.binaries['testing']
|
||||||
|
@ -115,7 +115,7 @@ def iter_except(func, exception, first=None):
|
|||||||
|
|
||||||
|
|
||||||
def undo_changes(lundo, inst_tester, sources, binaries,
|
def undo_changes(lundo, inst_tester, sources, binaries,
|
||||||
BINARIES=BINARIES, PROVIDES=PROVIDES):
|
BINARIES=BINARIES):
|
||||||
"""Undoes one or more changes to testing
|
"""Undoes one or more changes to testing
|
||||||
|
|
||||||
* lundo is a list of (undo, item)-tuples
|
* lundo is a list of (undo, item)-tuples
|
||||||
|
@ -39,7 +39,6 @@ class Completer(object):
|
|||||||
complete = []
|
complete = []
|
||||||
tpu = []
|
tpu = []
|
||||||
for e in britney.excuses:
|
for e in britney.excuses:
|
||||||
ver = None
|
|
||||||
pkg = e.name
|
pkg = e.name
|
||||||
suite = 'unstable'
|
suite = 'unstable'
|
||||||
if pkg[0] == '-':
|
if pkg[0] == '-':
|
||||||
|
2
hints.py
2
hints.py
@ -24,7 +24,7 @@ class HintCollection(object):
|
|||||||
return self.search(type)
|
return self.search(type)
|
||||||
|
|
||||||
def search(self, type=None, onlyactive=True, package=None, \
|
def search(self, type=None, onlyactive=True, package=None, \
|
||||||
version=None, days=None, removal=None):
|
version=None, removal=None):
|
||||||
|
|
||||||
return [ hint for hint in self._hints if
|
return [ hint for hint in self._hints if
|
||||||
(type is None or type == hint.type) and
|
(type is None or type == hint.type) and
|
||||||
|
@ -29,7 +29,7 @@ class _RelationBuilder(object):
|
|||||||
self._new_breaks = set(binary_data[1])
|
self._new_breaks = set(binary_data[1])
|
||||||
|
|
||||||
|
|
||||||
def add_dependency_clause(self, or_clause, frozenset=frozenset):
|
def add_dependency_clause(self, or_clause):
|
||||||
"""Add a dependency clause
|
"""Add a dependency clause
|
||||||
|
|
||||||
The clause must be a sequence of (name, version, architecture)
|
The clause must be a sequence of (name, version, architecture)
|
||||||
@ -48,7 +48,6 @@ class _RelationBuilder(object):
|
|||||||
clause = self._itbuilder._intern_set(or_clause)
|
clause = self._itbuilder._intern_set(or_clause)
|
||||||
binary = self._binary
|
binary = self._binary
|
||||||
itbuilder = self._itbuilder
|
itbuilder = self._itbuilder
|
||||||
package_table = itbuilder._package_table
|
|
||||||
okay = False
|
okay = False
|
||||||
for dep_tuple in clause:
|
for dep_tuple in clause:
|
||||||
okay = True
|
okay = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user