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

This commit is contained in:
Fabio Tranchitella 2006-08-02 09:56:33 +00:00
parent 6fa3cd188d
commit a852f13834

View File

@ -1897,11 +1897,10 @@ class Britney:
pkg = packages.pop(0)
# 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
packages.extend(deferred)
del deferred
continue
else: position -= 1
# defer packages if their dependency has been already skipped