Re-order parsing of suites to avoid changing binary pkgs

In the next commit, the binary packages will be turned into
namedtuples and will become immutable objects.

Signed-off-by: Niels Thykier <niels@thykier.net>
debian
Niels Thykier 9 years ago
parent c4e7596837
commit 7230cd29c0

@ -291,7 +291,6 @@ class Britney(object):
self.binaries['pu'] = {} self.binaries['pu'] = {}
for arch in self.options.architectures: for arch in self.options.architectures:
self.binaries['testing'][arch] = self.read_binaries(self.options.testing, "testing", arch)
self.binaries['unstable'][arch] = self.read_binaries(self.options.unstable, "unstable", arch) self.binaries['unstable'][arch] = self.read_binaries(self.options.unstable, "unstable", arch)
self.binaries['tpu'][arch] = self.read_binaries(self.options.tpu, "tpu", arch) self.binaries['tpu'][arch] = self.read_binaries(self.options.tpu, "tpu", arch)
if hasattr(self.options, 'pu'): if hasattr(self.options, 'pu'):
@ -301,6 +300,9 @@ class Britney(object):
# properly initialised, so insert two empty dicts # properly initialised, so insert two empty dicts
# here. # here.
self.binaries['pu'][arch] = ({}, {}) self.binaries['pu'][arch] = ({}, {})
# Load testing last as some live-data tests have more complete information in
# unstable
self.binaries['testing'][arch] = self.read_binaries(self.options.testing, "testing", arch)
self.log("Compiling Installability tester", type="I") self.log("Compiling Installability tester", type="I")
self._build_installability_tester(self.options.architectures) self._build_installability_tester(self.options.architectures)
@ -351,8 +353,7 @@ class Britney(object):
raise ValueError("Invalid data set") raise ValueError("Invalid data set")
# Merge ESSENTIAL if necessary # Merge ESSENTIAL if necessary
if pkg_entry2[ESSENTIAL]: assert pkg_entry1[ESSENTIAL] or not pkg_entry2[ESSENTIAL]
pkg_entry1[ESSENTIAL] = True
def __parse_arguments(self): def __parse_arguments(self):
"""Parse the command line arguments """Parse the command line arguments

Loading…
Cancel
Save