Mercurial > treepkg
comparison bin/sendnotificationmails.py @ 241:df3065e4c76b
Include the rules revision in the output of listpendingnotifications.py
and adapt sendnotificationmails.py and notification-template.txt
accordingly
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 14 Jan 2009 17:20:42 +0000 |
parents | aea6b97e7c68 |
children | 1fcdffbeb9de |
comparison
equal
deleted
inserted
replaced
240:58cf7e6b7cca | 241:df3065e4c76b |
---|---|
1 #! /usr/bin/python2.4 | 1 #! /usr/bin/python2.4 |
2 # Copyright (C) 2008 by Intevation GmbH | 2 # Copyright (C) 2008, 2009 by Intevation GmbH |
3 # Authors: | 3 # Authors: |
4 # Bernhard Herzog <bh@intevation.de> | 4 # Bernhard Herzog <bh@intevation.de> |
5 # | 5 # |
6 # This program is free software under the GPL (>=v2) | 6 # This program is free software under the GPL (>=v2) |
7 # Read the file COPYING coming with the software for details. | 7 # Read the file COPYING coming with the software for details. |
59 lines = capture_output(cmdexpand("ssh $build_user$@$build_host" | 59 lines = capture_output(cmdexpand("ssh $build_user$@$build_host" |
60 " $build_listpending", | 60 " $build_listpending", |
61 **config)) | 61 **config)) |
62 for line in lines.splitlines(): | 62 for line in lines.splitlines(): |
63 words = line.split() | 63 words = line.split() |
64 if len(words) == 3: | 64 if len(words) == 4: |
65 status, track, revision = words | 65 status, track, revision, rules_revision = words |
66 values = config.copy() | 66 values = config.copy() |
67 values.update(locals()) | 67 values.update(locals()) |
68 send_mail(config, template % values) | 68 send_mail(config, template % values) |
69 | 69 |
70 | 70 |