From a852f13834c8e3d7a206e7f27e4a026dcccf7ef8 Mon Sep 17 00:00:00 2001 From: Fabio Tranchitella Date: Wed, 2 Aug 2006 09:56:33 +0000 Subject: [PATCH] Fixed a bug in iter_packages: we dropped a package at the end of the first iteration. --- britney.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/britney.py b/britney.py index 3b55019..b3bebfa 100644 --- a/britney.py +++ b/britney.py @@ -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