From 675ed12f6047c8d40475e83a3925bbf84ea107c0 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 5 Aug 2010 00:47:45 -0400 Subject: [PATCH] Make the default build notifications more useful Signed-off-by: Anders Kaseorg --- build-hooks/post-build | 6 +++--- debian/changelog | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build-hooks/post-build b/build-hooks/post-build index 8934fb2..cd199db 100755 --- a/build-hooks/post-build +++ b/build-hooks/post-build @@ -61,14 +61,14 @@ def make_msg(build, values, verbose=True, success=lambda x: x, failure=lambda x: if build.succeeded: values['result'] = success(values['result']) - msg = """Build of %(package)s v%(version)s in %(pocket)s %(result)s. + msg = """Build of %(package)s %(version)s in %(pocket)s %(result)s. Branch %(pocket)s has been advanced to %(short_commit)s. (Build %(build_id)s was submitted by %(principal)s at %(inserted_at)s.)""" % values else: values['result'] = failure(values['result']) - msg = """Build of %(package)s v%(version)s in %(pocket)s %(result)s while %(failed_stage)s. + msg = """Build of %(package)s %(version)s in %(pocket)s %(result)s while %(failed_stage)s. %(traceback)s @@ -149,7 +149,7 @@ def main(): email = text.MIMEText(msg) email['To'] = to % values email['From'] = sender % values - email['Subject'] = mail_config.get('subject', 'XVM build %(build_id)s has %(result)s') % values + email['Subject'] = mail_config.get('subject', 'XVM build %(result)s: %(package)s %(version)s in %(pocket)s') % values common.captureOutput(['sendmail', '-t'], email.as_string(), stdout=None, stderr=None) diff --git a/debian/changelog b/debian/changelog index fc0890d..f82da2f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-dev (0.1.4) unstable; urgency=low + + * Make the default build notifications more useful. + + -- Anders Kaseorg Thu, 05 Aug 2010 00:46:52 -0400 + invirt-dev (0.1.3) unstable; urgency=low * Remove stray 'not' in builder.py -- 1.7.9.5