britney.py: Remove some redundant if-statements

Signed-off-by: Niels Thykier <niels@thykier.net>
debian
Niels Thykier 9 years ago
parent 31377a7c39
commit 52a1dd6ffa

@ -261,8 +261,7 @@ class Britney(object):
return return
# read the source and binary packages for the involved distributions # 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['unstable'] = self.read_sources(self.options.unstable)
self.sources['tpu'] = self.read_sources(self.options.tpu) self.sources['tpu'] = self.read_sources(self.options.tpu)
@ -271,15 +270,13 @@ class Britney(object):
else: else:
self.sources['pu'] = {} self.sources['pu'] = {}
if 'testing' not in self.binaries: self.binaries['testing'] = {}
self.binaries['testing'] = {}
self.binaries['unstable'] = {} self.binaries['unstable'] = {}
self.binaries['tpu'] = {} self.binaries['tpu'] = {}
self.binaries['pu'] = {} self.binaries['pu'] = {}
for arch in self.options.architectures: 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['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'):

Loading…
Cancel
Save