]> git.decadent.org.uk Git - dak.git/commitdiff
use correct override information for pre-existing packages
authorAnthony Towns <aj@azure.humbug.org.au>
Sat, 29 Jul 2006 11:45:51 +0000 (21:45 +1000)
committerAnthony Towns <aj@azure.humbug.org.au>
Sat, 29 Jul 2006 11:45:51 +0000 (21:45 +1000)
daklib/queue.py

index ea8f676aa66ea9e68003be4e9f3481835ecdc487..d786d62b6efcaf7abd615e1bf776f7099fe1e1de 100644 (file)
@@ -273,7 +273,11 @@ class Upload:
                 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"])
+                    # (queue/unchecked), there we have override entries already, use them
+                    # (process-new), there we dont have override entries, use the newly generated ones.
+                    override_prio = files[file].get("override priority", files[file]["priority"])
+                    override_sect = files[file].get("override section", files[file]["section"])
+                    override_summary += "%s - %s %s\n" % (file, override_prio, override_sect)
 
         short_summary = summary