summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-07-20 22:11:40 +0000
committerZac Medico <zmedico@gentoo.org>2009-07-20 22:11:40 +0000
commite7bcec0ac746c747d20f5d41199c1cc3b9ba615e (patch)
tree92e4bb3921cf49672504417709d21af572b24de3
parentf3e60706d495fef6eaf366ef69d2b08b3a55db9b (diff)
downloadportage-e7bcec0ac746c747d20f5d41199c1cc3b9ba615e.tar.gz
portage-e7bcec0ac746c747d20f5d41199c1cc3b9ba615e.tar.bz2
portage-e7bcec0ac746c747d20f5d41199c1cc3b9ba615e.zip
Skip Blocker instances inside _add_prefetchers().
svn path=/main/trunk/; revision=13842
-rw-r--r--pym/_emerge/Scheduler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index 246ed2a71..9228ab6f4 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -637,7 +637,8 @@ class Scheduler(PollScheduler):
# at the beginning, which annoy users, never
# spawn a prefetcher for the first package.
for pkg in self._mergelist[1:]:
- if pkg.operation == "uninstall":
+ # mergelist can contain solved Blocker instances
+ if not isinstance(pkg, Package) or pkg.operation == "uninstall":
continue
prefetcher = self._create_prefetcher(pkg)
if prefetcher is not None: