From a6c02fa2e7f2de104b47e5d33527da9d2db3eca4 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 17 Nov 2015 09:20:47 +0100 Subject: [PATCH] Restrict ADT_ARCHES to architectures we actually run for This makes it simpler to run britney against a PPA with --architectures='i386 amd64'. --- britney.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 98a7a9a..296b195 100755 --- a/britney.py +++ b/britney.py @@ -460,7 +460,6 @@ class Britney(object): self.options.outofsync_arches = self.options.outofsync_arches.split() self.options.break_arches = self.options.break_arches.split() self.options.new_arches = self.options.new_arches.split() - self.options.adt_arches = self.options.adt_arches.split() # Sort the architecture list 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.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"): """Print info messages according to verbosity level