[Buildbot-commits] buildbot/buildbot/scripts runner.py,1.54,1.55

Brian Warner warner at users.sourceforge.net
Mon Aug 13 17:22:46 UTC 2007


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

Modified Files:
	runner.py 
Log Message:
[project @ webstatus: ship a robots.txt which discourages access to all large dynamically-generated pages]

Original author: warner at lothar.com
Date: 2007-08-13 17:16:21+00:00

Index: runner.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scripts/runner.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- runner.py	1 Aug 2007 22:08:37 -0000	1.54
+++ runner.py	13 Aug 2007 17:22:44 -0000	1.55
@@ -153,7 +153,7 @@
         f.close()
         os.chmod(target, 0600)
 
-    def public_html(self, index_html, buildbot_css):
+    def public_html(self, index_html, buildbot_css, robots_txt):
         if os.path.exists("public_html"):
             if not self.quiet:
                 print "public_html/ already exists: not replacing"
@@ -171,6 +171,11 @@
         f.write(open(buildbot_css, "rt").read())
         f.close()
 
+        target = os.path.join("public_html", "robots.txt")
+        f = open(target, "wt")
+        f.write(open(robots_txt, "rt").read())
+        f.close()
+
 
 class MasterOptions(MakerBase):
     optFlags = [
@@ -215,6 +220,7 @@
     m.sampleconfig(util.sibpath(__file__, "sample.cfg"))
     m.public_html(util.sibpath(__file__, "../status/web/index.html"),
                   util.sibpath(__file__, "../status/web/classic.css"),
+                  util.sibpath(__file__, "../status/web/robots.txt"),
                   )
     m.makefile()
 





More information about the Commits mailing list