pld-builder.new: PLD_Builder/buildlogs.py rename ready file.

arekm arekm at pld-linux.org
Fri Oct 2 09:48:42 CEST 2009


Author: arekm                        Date: Fri Oct  2 07:48:42 2009 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
rename ready file.

---- Files affected:
pld-builder.new/PLD_Builder:
   buildlogs.py (1.20 -> 1.21) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/buildlogs.py
diff -u pld-builder.new/PLD_Builder/buildlogs.py:1.20 pld-builder.new/PLD_Builder/buildlogs.py:1.21
--- pld-builder.new/PLD_Builder/buildlogs.py:1.20	Tue Apr  7 16:23:26 2009
+++ pld-builder.new/PLD_Builder/buildlogs.py	Fri Oct  2 09:48:37 2009
@@ -46,9 +46,10 @@
 """ % (config.buildlogs_url, l['name'], config.builder, time.time(), self.requester_email)
         
         for l in self.queue:
-            f = open(path.buildlogs_queue_dir + '/' + l['id'] + ".desc", "w")
+            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")
 
 queue = Buildlogs_Queue()
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/buildlogs.py?r1=1.20&r2=1.21&f=u



More information about the pld-cvs-commit mailing list