[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Fri Nov 19 14:31:39 MST 2010
The branch, master has been updated
via ed4f5cf Avoid indirection.
from c95b2eb Add bcc to mail-dead-hots.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit ed4f5cf3bf74e81d203f690f207e453992746714
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Fri Nov 19 22:31:22 2010 +0100
Avoid indirection.
-----------------------------------------------------------------------
Summary of changes:
mail-dead-hosts.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/mail-dead-hosts.py b/mail-dead-hosts.py
index 0dfe04b..94aa133 100755
--- a/mail-dead-hosts.py
+++ b/mail-dead-hosts.py
@@ -28,12 +28,11 @@ parser.add_option("--dry-run", help="Don't actually send any emails.", action="s
(opts, args) = parser.parse_args()
buildfarm = StormCachingBuildFarm(timeout=40.0)
-db = buildfarm.hostdb
smtp = smtplib.SMTP()
smtp.connect()
-hosts = db.dead_hosts(7 * 86400)
+hosts = buildfarm.hostdb.dead_hosts(7 * 86400)
for host in hosts:
if host.last_update:
last_update = time.strftime("%a %b %e %H:%M:%S %Y", time.gmtime(host.last_update))
@@ -75,5 +74,5 @@ The Build Farm administration team.
else:
smtp.sendmail(msg["From"], [msg["To"]], msg.as_string())
host.dead_mail_sent()
-db.commit()
+buildfarm.commit()
smtp.quit()
--
build.samba.org
More information about the samba-cvs
mailing list