From: Anthony Towns Date: Fri, 28 Jul 2006 15:17:05 +0000 (+1000) Subject: include override information in accepted mails X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bf41f725ad73cb98ec7295ad1006e92dcccf380b;p=dak.git include override information in accepted mails --- diff --git a/daklib/queue.py b/daklib/queue.py index e8d569bc..ea8f676a 100644 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -252,6 +252,7 @@ class Upload: if not changes.has_key("distribution") or not isinstance(changes["distribution"], DictType): changes["distribution"] = {} + override_summary =""; file_keys = files.keys() file_keys.sort() for file in file_keys: @@ -271,6 +272,8 @@ class Upload: files[file]["pool name"] = utils.poolify (changes.get("source",""), files[file]["component"]) destination = self.Cnf["Dir::PoolRoot"] + files[file]["pool name"] + file summary += file + "\n to " + destination + "\n" + if files[file]["type"] in ["deb", "udeb", "dsc"]: + override_summary += "%s - %s %s\n" % (file, files[file]["priority"], files[file]["section"]) short_summary = summary @@ -280,6 +283,8 @@ class Upload: if byhand or new: summary += "Changes: " + f + summary += "\n\nOverride entries for your package:\n" + override_summary + "\n" + summary += self.announce(short_summary, 0) return (summary, short_summary)