Fixed a bug in iter_packages: we dropped a package at the end of the first iteration.

master
Fabio Tranchitella 18 years ago
parent 6fa3cd188d
commit a852f13834

@ -1897,11 +1897,10 @@ class Britney:
pkg = packages.pop(0) pkg = packages.pop(0)
# this is the marker for the first loop # this is the marker for the first loop
if not mark_passed and position < 0: if not compatible and not mark_passed and position < 0:
mark_passed = True mark_passed = True
packages.extend(deferred) packages.extend(deferred)
del deferred del deferred
continue
else: position -= 1 else: position -= 1
# defer packages if their dependency has been already skipped # defer packages if their dependency has been already skipped

Loading…
Cancel
Save