From: Joerg Jaspert Date: Mon, 7 Sep 2009 22:55:48 +0000 (+0200) Subject: p-u X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e934c441af23d80af0daebed24146b335d846ff;p=dak p-u urgency may be followed by a comment (seperated by space), see policy 5.6.17 Signed-off-by: Joerg Jaspert --- 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"]