[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Fri Nov 19 11:52:01 MST 2010
The branch, master has been updated
via 1066142 Use storm db in admin.py.
from 7596b66 Store basename in database.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 1066142ae487d660fad0a7b157b867ab52b3e248
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Fri Nov 19 19:51:44 2010 +0100
Use storm db in admin.py.
-----------------------------------------------------------------------
Summary of changes:
admin.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Changeset truncated at 500 lines:
diff --git a/admin.py b/admin.py
index 0fb8231..0f39bcc 100755
--- a/admin.py
+++ b/admin.py
@@ -19,8 +19,8 @@
from buildfarm import (
hostdb,
- BuildFarm,
)
+from buildfarm.sqldb import StormCachingBuildFarm
import commands
import os
import smtplib
@@ -81,7 +81,7 @@ if op == "remove":
elif op == "modify":
hostname = raw_input("Please enter hostname to modify: ")
try:
- host = db.host(hostname)
+ host = db[hostname]
except hostdb.NoSuchHost, e:
print "No such host '%s'" % e.name
sys.exit(1)
@@ -108,7 +108,7 @@ elif op == "modify":
elif op == "add":
hostname = raw_input("Machine hostname: ")
try:
- db.host(hostname)
+ db[hostname]
except hostdb.NoSuchHost, e:
pass
else:
@@ -192,7 +192,7 @@ Thanks, your friendly Samba build farm administrator <build at samba.org>""" % owne
elif op == "info":
hostname = raw_input("Hostname: ")
try:
- host = db.host(hostname)
+ host = db[hostname]
except hostdb.NoSuchHost, e:
print "No such host '%s'" % e.name
sys.exit(1)
--
build.samba.org
More information about the samba-cvs
mailing list