mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-10 10:51:08 +00:00
britney.py: Remove some redundant if-statements
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
31377a7c39
commit
52a1dd6ffa
@ -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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user