[Buildbot-commits] buildbot/buildbot/scripts runner.py,1.10,1.11
Brian Warner
warner at users.sourceforge.net
Sat Apr 23 00:01:24 UTC 2005
Update of /cvsroot/buildbot/buildbot/buildbot/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32752/buildbot/scripts
Modified Files:
runner.py
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-71
Creator: Brian Warner <warner at monolith.lothar.com>
create info/* files when making the slave directory
2005-04-22 Brian Warner <warner at lothar.com>
* buildbot/scripts/runner.py (Maker.mkinfo): create the info/admin
and info/host files when making the slave directory
Index: runner.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scripts/runner.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- runner.py 22 Apr 2005 07:35:58 -0000 1.10
+++ runner.py 23 Apr 2005 00:01:21 -0000 1.11
@@ -28,6 +28,23 @@
if not self.quiet: print "mkdir", self.basedir
os.mkdir(self.basedir)
+ def mkinfo(self):
+ path = os.path.join(self.basedir, "info")
+ if not os.path.exists(path):
+ if not self.quiet: print "mkdir", path
+ os.mkdir(path)
+ admin = os.path.join(path, "admin")
+ if not os.path.exists(admin):
+ f = open(admin, "wt")
+ f.write("Your Name Here <admin at youraddress.invalid>\n")
+ f.close()
+ host = os.path.join(path, "host")
+ if not os.path.exists(host):
+ f = open(host, "wt")
+ f.write("Please put a description of this build host here\n")
+ f.close()
+ print "Please edit the files in %s appropriately." % path
+
def chdir(self):
if not self.quiet: print "chdir", self.basedir
os.chdir(self.basedir)
@@ -92,6 +109,7 @@
m.mktap(cmd)
m.makefile(util.sibpath(__file__, "sample.mk"), cmd)
+ m.mkinfo()
if not m.quiet: print "buildslave configured in %s" % m.basedir
sys.exit(0)
@@ -210,7 +228,7 @@
def statusgui(config):
#from buildbot.clients import gtkPanes
- #c = gtkPanes.CompactGtkClient()
+ #c = gtkPanes.GtkClient(config['master'])
from buildbot.clients import base
c = base.TextClient(config['master'])
c.run()
More information about the Commits
mailing list