[dak/master] process-new: automatically convert priority extra to optional
Priority "extra" is deprecated, packages using that priority should
be given priority "optional" instead. Given most packages are not
catching up with recent policy update, enforce that while adding
overrides upon NEW processing.
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
dak/process_new.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dak/process_new.py b/dak/process_new.py
index 55397c7..2e906ef 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -526,6 +526,12 @@ def do_new(upload, upload_copy, handler, session):
if missing:
print "NEW\n"
+ for i, package in enumerate(missing):
+ if package["type"] == "deb":
+ if package["priority"] == "extra":
+ package["priority"] = "optional"
+ missing[i] = package
+
answer = "XXX"
if Options["No-Action"] or Options["Automatic"]:
answer = 'S'
--
2.1.4
Reply to: