mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 20:01:08 +00:00
britney: Avoid some references to britney.{sources,binaries}
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
dfbff18b5c
commit
97d707e5c0
12
britney.py
12
britney.py
@ -332,8 +332,8 @@ class Britney(object):
|
||||
# compute inverse Testsuite-Triggers: map, unifying all series
|
||||
self.logger.info('Building inverse testsuite_triggers map')
|
||||
self.testsuite_triggers = {}
|
||||
for suitemap in self.sources.values():
|
||||
for src, data in suitemap.items():
|
||||
for suite in self.suite_info:
|
||||
for src, data in suite.sources.items():
|
||||
for trigger in data.testsuite_triggers:
|
||||
self.testsuite_triggers.setdefault(trigger, set()).add(src)
|
||||
|
||||
@ -1327,7 +1327,7 @@ class Britney(object):
|
||||
"""
|
||||
|
||||
source_suite = self.suite_info[suite_name]
|
||||
source_u = self.sources[suite_name][src]
|
||||
source_u = source_suite.sources[src]
|
||||
if source_u.is_fakesrc:
|
||||
# it is a fake package created to satisfy Britney implementation details; silently ignore it
|
||||
return False
|
||||
@ -1555,9 +1555,9 @@ class Britney(object):
|
||||
# this architecture then we assume it's ok. this allows for
|
||||
# uploads to (t-)p-u which intentionally drop binary
|
||||
# packages
|
||||
if any(x for x in self.binaries[suite_name][arch][0].values() \
|
||||
if x.source == src and x.source_version == source_u.version and \
|
||||
x.architecture != 'all'):
|
||||
if any(x for x in source_suite.binaries[arch][0].values()
|
||||
if x.source == src and x.source_version == source_u.version and
|
||||
x.architecture != 'all'):
|
||||
continue
|
||||
|
||||
# TODO: Find a way to avoid hardcoding pu/stable relation.
|
||||
|
@ -232,7 +232,7 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
elegible_for_bounty = False
|
||||
|
||||
# skip/delay autopkgtests until new package is built somewhere
|
||||
binaries_info = self.britney.sources[suite][source_name]
|
||||
binaries_info = self.suite_info[suite].sources[source_name]
|
||||
if not binaries_info.binaries:
|
||||
self.logger.info('%s hasn''t been built anywhere, skipping autopkgtest policy', excuse.name)
|
||||
verdict = PolicyVerdict.REJECTED_TEMPORARILY
|
||||
|
Loading…
x
Reference in New Issue
Block a user