Skip Blocker instances inside _add_prefetchers().
authorZac Medico <zmedico@gentoo.org>
Mon, 20 Jul 2009 22:11:40 +0000 (22:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 20 Jul 2009 22:11:40 +0000 (22:11 -0000)
svn path=/main/trunk/; revision=13842

pym/_emerge/Scheduler.py

index 246ed2a71c15df5eaa8f4f5078ec45c4d0b6ab7e..9228ab6f42d65b67d552a31d652c5480a2849a93 100644 (file)
@@ -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: