From 11af066dda576b822cfd1300609a52c4b3b905af Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 9 Dec 2014 15:36:09 +0000 Subject: [PATCH] Make sure that self.binaries['tpu'][arch] is properly initialised. --- britney.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/britney.py b/britney.py index ef0e659..a1bc5da 100755 --- a/britney.py +++ b/britney.py @@ -304,6 +304,11 @@ class Britney(object): self.merge_binaries('testing', 'unstable', arch) if hasattr(self.options, 'tpu'): self.binaries['tpu'][arch] = self.read_binaries(self.options.tpu, "tpu", arch) + else: + # _build_installability_tester relies it being + # properly initialised, so insert two empty dicts + # here. + self.binaries['tpu'][arch] = ({}, {}) if hasattr(self.options, 'pu'): self.binaries['pu'][arch] = self.read_binaries(self.options.pu, "pu", arch) else: