Small (silly?) optimization and variable rename.

bzr-import-20160707
Fabio Tranchitella 19 years ago
parent 4c244612e5
commit db59ded380

@ -1380,9 +1380,9 @@ class Britney:
skip_archall = True skip_archall = True
else: skip_archall = False else: skip_archall = False
nbroken = -1 l = -1
while len(broken) > nbroken: while len(broken) > l and not (l == 0 and l == len(broken)):
nbroken = len(broken) l = len(broken)
for p in filter(lambda x: x[3] == arch, affected): for p in filter(lambda x: x[3] == arch, affected):
if not self.binaries['testing'][arch][0].has_key(p[0]) or \ if not self.binaries['testing'][arch][0].has_key(p[0]) or \
skip_archall and self.binaries['testing'][arch][0][p[0]]['architecture'] == 'all': continue skip_archall and self.binaries['testing'][arch][0][p[0]]['architecture'] == 'all': continue

Loading…
Cancel
Save