[Buildbot-commits] buildbot/buildbot/slave commands.py,1.47,1.48

Brian Warner warner at users.sourceforge.net
Fri May 19 07:44:24 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/slave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23702/buildbot/slave

Modified Files:
	commands.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-541
Creator:  Brian Warner <warner at lothar.com>

clean up timezone-string usage

	* buildbot/scripts/tryclient.py (CVSExtractor.getBaseRevision):
	use a timezone string of +0000 and gmtime, since this timestamp is
	sent to a buildmaster and %z is broken.

	* buildbot/test/test_vc.py (CVSHelper.getdate): use no timezone
	string and localtime, since this timestamp will only be consumed
	locally, and %z is broken.

	* buildbot/slave/commands.py (CVS.parseGotRevision): use +0000 and
	gmtime, since this timestamp is returned to the buildmaster, and
	%z is broken.


Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- commands.py	6 May 2006 23:51:28 -0000	1.47
+++ commands.py	19 May 2006 07:44:22 -0000	1.48
@@ -959,7 +959,7 @@
         # the current timestamp as a best-effort guess, but this depends upon
         # the local system having a clock that is
         # reasonably-well-synchronized with the repository.
-        return time.strftime("%Y-%m-%d %H:%M:%S %z", time.gmtime())
+        return time.strftime("%Y-%m-%d %H:%M:%S +0000", time.gmtime())
 
 registerSlaveCommand("cvs", CVS, cvs_ver)
 





More information about the Commits mailing list