From 7e934c441af23d80af0daebed24146b335d846ff Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Tue, 8 Sep 2009 00:55:48 +0200 Subject: [PATCH] p-u urgency may be followed by a comment (seperated by space), see policy 5.6.17 Signed-off-by: Joerg Jaspert --- dak/process_unchecked.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index fdf052d2..7b0f9aba 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -929,7 +929,8 @@ def check_urgency (): if changes["architecture"].has_key("source"): if not changes.has_key("urgency"): changes["urgency"] = Cnf["Urgency::Default"] - changes["urgency"] = changes["urgency"].lower() + # Urgency may be followed by space & comment (policy 5.6.17) + changes["urgency"] = changes["urgency"].split(" ")[0].lower(); if changes["urgency"] not in Cnf.ValueList("Urgency::Valid"): reject("%s is not a valid urgency; it will be treated as %s by testing." % (changes["urgency"], Cnf["Urgency::Default"]), "Warning: ") changes["urgency"] = Cnf["Urgency::Default"] -- 2.39.5