[sulfur] don't spam text during package install when running with --debug

This commit is contained in:
Fabio Erculiani
2009-07-10 19:34:39 +02:00
parent 40906ebe58
commit 8affc812a9
+6 -2
View File
@@ -1540,12 +1540,16 @@ class SulfurApplication(Controller, SulfurApplicationEventsMixin):
t = ParallelTask(run_tha_bstrd)
t.start()
dbg_count = 0
while t.isAlive():
if dbg_count > 2000:
dbg_count = 0
dbg_count += 1
time.sleep(0.2)
if self.do_debug:
if self.do_debug and (dbg_count % 500 = 0):
print "process_queue: QueueExecutor thread still alive"
self.gtk_loop()
if self.do_debug:
if self.do_debug and (dbg_count % 500 = 0):
print "process_queue: after QueueExecutor loop"
e,i = self.my_inst_errors