pld-builder.new: PLD_Builder/buildlogs.py Remove done jobs from queue.
arekm
arekm at pld-linux.org
Thu Oct 8 15:48:11 CEST 2009
Author: arekm Date: Thu Oct 8 13:48:11 2009 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
Remove done jobs from queue.
---- Files affected:
pld-builder.new/PLD_Builder:
buildlogs.py (1.25 -> 1.26)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/buildlogs.py
diff -u pld-builder.new/PLD_Builder/buildlogs.py:1.25 pld-builder.new/PLD_Builder/buildlogs.py:1.26
--- pld-builder.new/PLD_Builder/buildlogs.py:1.25 Mon Oct 5 22:58:09 2009
+++ pld-builder.new/PLD_Builder/buildlogs.py Thu Oct 8 15:48:06 2009
@@ -47,11 +47,13 @@
END
""" % (config.buildlogs_url, l['name'], config.builder, time.time(), self.requester_email)
- for l in self.queue:
+ q = self.queue[:]
+ for l in q:
f = open(path.buildlogs_queue_dir + '/' + l['id'] + ".desc.tmp", "w")
f.write(desc(l))
f.close()
os.rename(path.buildlogs_queue_dir + '/' + l['id'] + ".desc.tmp", path.buildlogs_queue_dir + '/' + l['id'] + ".desc")
+ self.queue.remove(l)
queue = Buildlogs_Queue()
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/buildlogs.py?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list