mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-13 11:31:38 +00:00
Restrict ADT_ARCHES to architectures we actually run for
This makes it simpler to run britney against a PPA with --architectures='i386 amd64'.
This commit is contained in:
parent
6e8ddbb7c4
commit
a6c02fa2e7
@ -460,7 +460,6 @@ class Britney(object):
|
|||||||
self.options.outofsync_arches = self.options.outofsync_arches.split()
|
self.options.outofsync_arches = self.options.outofsync_arches.split()
|
||||||
self.options.break_arches = self.options.break_arches.split()
|
self.options.break_arches = self.options.break_arches.split()
|
||||||
self.options.new_arches = self.options.new_arches.split()
|
self.options.new_arches = self.options.new_arches.split()
|
||||||
self.options.adt_arches = self.options.adt_arches.split()
|
|
||||||
|
|
||||||
# Sort the architecture list
|
# Sort the architecture list
|
||||||
allarches = sorted(self.options.architectures.split())
|
allarches = sorted(self.options.architectures.split())
|
||||||
@ -472,6 +471,14 @@ class Britney(object):
|
|||||||
self.options.architectures = [sys.intern(arch) for arch in arches]
|
self.options.architectures = [sys.intern(arch) for arch in arches]
|
||||||
self.options.smooth_updates = self.options.smooth_updates.split()
|
self.options.smooth_updates = self.options.smooth_updates.split()
|
||||||
|
|
||||||
|
# restrict adt_arches to architectures we actually run for
|
||||||
|
adt_arches = []
|
||||||
|
for arch in self.options.adt_arches.split():
|
||||||
|
if arch in self.options.architectures:
|
||||||
|
adt_arches.append(arch)
|
||||||
|
else:
|
||||||
|
self.__log("Ignoring ADT_ARCHES %s as it is not in architectures list" % arch)
|
||||||
|
self.options.adt_arches = adt_arches
|
||||||
|
|
||||||
def __log(self, msg, type="I"):
|
def __log(self, msg, type="I"):
|
||||||
"""Print info messages according to verbosity level
|
"""Print info messages according to verbosity level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user