From db59ded3808b25c9233050d28934e7f5d10fac34 Mon Sep 17 00:00:00 2001 From: Fabio Tranchitella Date: Sat, 22 Jul 2006 08:52:05 +0000 Subject: [PATCH] Small (silly?) optimization and variable rename. --- britney.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/britney.py b/britney.py index 6882f0b..23b8178 100644 --- a/britney.py +++ b/britney.py @@ -1380,9 +1380,9 @@ class Britney: skip_archall = True else: skip_archall = False - nbroken = -1 - while len(broken) > nbroken: - nbroken = len(broken) + l = -1 + while len(broken) > l and not (l == 0 and l == len(broken)): + l = len(broken) for p in filter(lambda x: x[3] == arch, affected): 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