[Buildbot-commits] buildbot/buildbot master.py,1.78,1.79

Brian Warner warner at users.sourceforge.net
Thu Aug 11 21:58:43 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17945/buildbot

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

repair bitrot in the IRC status bot

	* buildbot/master.py (DebugPerspective.perspective_pokeIRC): fix
	this, it got broken at some point in the last few releases
	* buildbot/status/words.py (IrcBuildRequest): reply was broken
	(IrcStatusBot.emit_status): handle new IBuilderStatus.getState,
	specifically the removal of ETA information from the tuple


Index: master.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/master.py,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- master.py	20 Jul 2005 05:36:55 -0000	1.78
+++ master.py	11 Aug 2005 21:58:41 -0000	1.79
@@ -449,11 +449,13 @@
         self.master.loadTheConfigFile()
     def perspective_pokeIRC(self):
         print "saying something on IRC"
-        for bot in self.master.ircFactory.allBots.values():
-            print "bot", bot
-            for channel in bot.channels:
-                print "channel", channel
-                bot.msg("#%s" % channel, "Ow, quit it")
+        from buildbot.status import words
+        for s in self.master:
+            if isinstance(s, words.IRC):
+                bot = s.f
+                for channel in bot.channels:
+                    print " channel", channel
+                    bot.p.msg(channel, "Ow, quit it")
 
     def perspective_print(self, msg):
         print "debug", msg





More information about the Commits mailing list