Fix broken logic in Scheduler._main_loop() which would allow the main loop to
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Oct 2008 02:52:41 +0000 (02:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Oct 2008 02:52:41 +0000 (02:52 -0000)
exit while one or more merges are still scheduled. Thanks to Patrick Lauer for
reporting.

svn path=/main/trunk/; revision=11607

pym/_emerge/__init__.py

index 865e17198c14158cfdbc57a2e6f889c74c4e3fe9..366568c516f1443610e3fa0bf8dea879b2dc7a83 100644 (file)
@@ -9857,7 +9857,7 @@ class Scheduler(PollScheduler):
 
                while True:
                        self._schedule()
-                       if not self._jobs or merge_queue:
+                       if not (self._jobs or merge_queue):
                                break
                        if self._poll_event_handlers:
                                self._poll_loop()