From 750abd4c47104148aaebc62fb9332b34109f4399 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Jul 2008 10:49:02 +0000 Subject: [PATCH] Fix ValueError triggered when Scheduler._choose_pkg() doesn't find a package and returns None. svn path=/main/trunk/; revision=10985 --- pym/_emerge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 66f5ce4ee..d7cd8fa11 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8101,7 +8101,8 @@ class Scheduler(object): chosen_pkg = pkg break - self._pkg_queue.remove(chosen_pkg) + if chosen_pkg is not None: + self._pkg_queue.remove(chosen_pkg) return chosen_pkg def _dependent_on_scheduled_merges(self, pkg): -- 2.26.2