X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=d786d62b6efcaf7abd615e1bf776f7099fe1e1de;hb=641dd7dc1f8cef7ccd6059a0240c768ace373608;hp=e8d569bc7fa6f1898ae5f25fc6ac32dd89f9cbbc;hpb=8bad52143f847c0e5b574d6294882119a7b9faf8;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index e8d569bc..d786d62b 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,12 @@ 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"]: + # (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 @@ -280,6 +287,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)