提交 bf41f725 编写于 作者: A Anthony Towns

include override information in accepted mails

上级 05aa3233
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册