mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-13 04:11:07 +00:00
britney.py: Simply a loop in should_upgrade_src
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
c4931fb1b2
commit
7d7a42153d
@ -1368,12 +1368,10 @@ class Britney(object):
|
||||
# check if there is a `block' or `block-udeb' hint for this package, or a `block-all source' hint
|
||||
blocked = {}
|
||||
for hint in self.hints.search(package=src):
|
||||
if hint.type == 'block':
|
||||
blocked['block'] = hint
|
||||
excuse.add_hint(hint)
|
||||
if hint.type == 'block-udeb':
|
||||
blocked['block-udeb'] = hint
|
||||
if hint.type in {'block', 'block-udeb'}:
|
||||
blocked[hint.type] = hint
|
||||
excuse.add_hint(hint)
|
||||
|
||||
if 'block' not in blocked:
|
||||
for hint in self.hints.search(type='block-all'):
|
||||
if hint.package == 'source' or (not source_t and hint.package == 'new-source'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user