From bf41f725ad73cb98ec7295ad1006e92dcccf380b Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Sat, 29 Jul 2006 01:17:05 +1000 Subject: [PATCH] include override information in accepted mails --- daklib/queue.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5