Skip to content

Commit

Permalink
fix imports in upgrade-master, don't start db in upgrade-master
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jun 4, 2010
1 parent e1cfc9d commit 0af95e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions buildbot/scripts/runner.py
Expand Up @@ -444,17 +444,16 @@ def upgradeMaster(config):
m.move_if_present(os.path.join(basedir, "public_html/index.html"),
os.path.join(basedir, "templates/root.html"))

from buildbot.db import schema, connector, dbspec
from buildbot.db import connector, dbspec
spec = dbspec.DBSpec.from_url(config["db"], basedir)
# TODO: check that TAC file specifies the right spec

# upgrade the db
sm = schema.DBSchemaManager(spec, basedir)
from buildbot.db.schema import manager
sm = manager.DBSchemaManager(spec, basedir)
sm.upgrade()

db = connector.DBConnector(spec)
db.start()

# check the configuration
rc = m.check_master_cfg()
if rc:
return rc
Expand Down

0 comments on commit 0af95e8

Please sign in to comment.