]> git.decadent.org.uk Git - dak.git/commitdiff
include override information in accepted mails
authorAnthony Towns <aj@azure.humbug.org.au>
Fri, 28 Jul 2006 15:17:05 +0000 (01:17 +1000)
committerAnthony Towns <aj@azure.humbug.org.au>
Fri, 28 Jul 2006 15:17:05 +0000 (01:17 +1000)
daklib/queue.py

index e8d569bc7fa6f1898ae5f25fc6ac32dd89f9cbbc..ea8f676aa66ea9e68003be4e9f3481835ecdc487 100644 (file)
@@ -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)