Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Unified Diff: third_party/buildbot_7_12/buildbot/scripts/checkconfig.py

Issue 12207158: Bye bye buildbot 0.7.12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/buildbot_7_12/buildbot/scripts/checkconfig.py
diff --git a/third_party/buildbot_7_12/buildbot/scripts/checkconfig.py b/third_party/buildbot_7_12/buildbot/scripts/checkconfig.py
deleted file mode 100644
index a1f76554d1072a6685d113604f6f7d9ca5720aa2..0000000000000000000000000000000000000000
--- a/third_party/buildbot_7_12/buildbot/scripts/checkconfig.py
+++ /dev/null
@@ -1,39 +0,0 @@
-import sys
-import os
-from shutil import copy, rmtree
-from tempfile import mkdtemp
-from os.path import isfile
-import traceback
-
-from buildbot import master
-
-class ConfigLoader(master.BuildMaster):
- def __init__(self, basedir=os.getcwd(), configFileName="master.cfg"):
- master.BuildMaster.__init__(self, basedir, configFileName)
- configFileName = os.path.join(basedir, configFileName)
- dir = os.getcwd()
- # Use a temporary directory since loadConfig() creates a bunch of
- # directories and compiles .py files
- tempdir = mkdtemp()
- try:
- copy(configFileName, tempdir)
- for entry in os.listdir("."):
- # Any code in a subdirectory will _not_ be copied! This is a bug
- if isfile(entry) and not entry.startswith("twistd.log"):
- copy(entry, tempdir)
- except:
- raise
-
- try:
- os.chdir(tempdir)
- # Add the temp directory to the library path so local modules work
- sys.path.append(tempdir)
- configFile = open(configFileName, "r")
- self.loadConfig(configFile)
- except:
- os.chdir(dir)
- configFile.close()
- rmtree(tempdir)
- raise
- os.chdir(dir)
- rmtree(tempdir)
« no previous file with comments | « third_party/buildbot_7_12/buildbot/scripts/__init__.py ('k') | third_party/buildbot_7_12/buildbot/scripts/logwatcher.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698