From 52a1dd6ffaa97a9e9ddfefbb68f72a58994de43f Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 17 Jan 2016 18:49:35 +0000 Subject: [PATCH] britney.py: Remove some redundant if-statements Signed-off-by: Niels Thykier --- britney.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/britney.py b/britney.py index 9a43ac6..ae972af 100755 --- a/britney.py +++ b/britney.py @@ -261,8 +261,7 @@ class Britney(object): return # read the source and binary packages for the involved distributions - if 'testing' not in self.sources: - self.sources['testing'] = self.read_sources(self.options.testing) + self.sources['testing'] = self.read_sources(self.options.testing) self.sources['unstable'] = self.read_sources(self.options.unstable) self.sources['tpu'] = self.read_sources(self.options.tpu) @@ -271,15 +270,13 @@ class Britney(object): else: self.sources['pu'] = {} - if 'testing' not in self.binaries: - self.binaries['testing'] = {} + self.binaries['testing'] = {} self.binaries['unstable'] = {} self.binaries['tpu'] = {} self.binaries['pu'] = {} for arch in self.options.architectures: - if arch not in self.binaries['testing']: - self.binaries['testing'][arch] = self.read_binaries(self.options.testing, "testing", arch) + 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['tpu'][arch] = self.read_binaries(self.options.tpu, "tpu", arch) if hasattr(self.options, 'pu'):