From 534be816c26d7ddc1a0944fe7851064abbe28d76 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sat, 21 Nov 2009 22:37:14 -0500 Subject: [PATCH 2/4] upload.cgi: Use the same format as md5sum for the message body This makes it easier to compare the output from the upload to a locally generated md5sum. --- configs/web/applications/upload.cgi | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/web/applications/upload.cgi b/configs/web/applications/upload.cgi index baa7b4a..727deea 100644 --- a/configs/web/applications/upload.cgi +++ b/configs/web/applications/upload.cgi @@ -62,8 +62,9 @@ def check_auth(username): return authenticated def send_email(name, md5, filename, username): - text = 'File %s for package %s has been uploaded to the lookaside cache with md5sum %s by %s' % \ - (filename, name, md5, username) + text = """A file has been added to the lookaside cache for %(name)s: + +%(md5)s %(filename)s""" % locals() msg = MIMEText(text) try: sender_name = pwd.getpwnam(username)[4] -- 1.6.5.2