Only count "merge" nodes when determining whether or not to trigger
authorZac Medico <zmedico@gentoo.org>
Sun, 16 May 2010 23:11:43 +0000 (16:11 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 16 May 2010 23:11:43 +0000 (16:11 -0700)
parallel-fetch.

pym/_emerge/Scheduler.py

index b8dac2625543f0988b5948dd24ce0f8eeca2bca5..d22d104b19cd39ac67b2bf8b74a6909749902547 100644 (file)
@@ -259,7 +259,7 @@ class Scheduler(PollScheduler):
                                        "thus parallel-fetching is being disabled"+"\n",
                                        noiselevel=-1)
                                portage.writemsg(red("!!!")+"\n", noiselevel=-1)
-                       elif len(mergelist) > 1:
+                       elif merge_count > 1:
                                self._parallel_fetch = True
 
                if self._parallel_fetch: