mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 03:41:12 +00:00
Add option to ignore cruft
Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
parent
85f2f629bb
commit
88bf620896
@ -59,3 +59,5 @@ HINTS_AUTO-REMOVALS = remove
|
||||
# naming a non-existent section will effectively disable new smooth
|
||||
# updates but still allow removals to occur
|
||||
SMOOTH_UPDATES = libs oldlibs
|
||||
|
||||
IGNORE_CRUFT = 1
|
||||
|
15
britney.py
15
britney.py
@ -446,6 +446,9 @@ class Britney(object):
|
||||
self.options.architectures = [sys.intern(arch) for arch in arches]
|
||||
self.options.smooth_updates = self.options.smooth_updates.split()
|
||||
|
||||
if not hasattr(self.options, 'ignore_cruft') or \
|
||||
self.options.ignore_cruft == "0":
|
||||
self.options.ignore_cruft = False
|
||||
|
||||
def __log(self, msg, type="I"):
|
||||
"""Print info messages according to verbosity level
|
||||
@ -1471,13 +1474,19 @@ class Britney(object):
|
||||
if arch in self.options.fucked_arches:
|
||||
text = text + " (but %s isn't keeping up, so nevermind)" % (arch)
|
||||
else:
|
||||
update_candidate = False
|
||||
excuse.addreason("arch")
|
||||
excuse.addreason("arch-%s" % arch)
|
||||
if uptodatebins:
|
||||
excuse.addreason("cruft-arch")
|
||||
excuse.addreason("cruft-arch-%s" % arch)
|
||||
if self.options.ignore_cruft:
|
||||
text = text + " (but ignoring cruft, so nevermind)"
|
||||
else:
|
||||
update_candidate = False
|
||||
excuse.addreason("arch")
|
||||
excuse.addreason("arch-%s" % arch)
|
||||
else:
|
||||
update_candidate = False
|
||||
excuse.addreason("arch")
|
||||
excuse.addreason("arch-%s" % arch)
|
||||
excuse.addreason("build-arch")
|
||||
excuse.addreason("build-arch-%s" % arch)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user