]> git.decadent.org.uk Git - dak.git/commitdiff
p-u
authorJoerg Jaspert <joerg@debian.org>
Mon, 7 Sep 2009 22:55:48 +0000 (00:55 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 7 Sep 2009 22:55:48 +0000 (00:55 +0200)
urgency may be followed by a comment (seperated by space), see policy 5.6.17

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_unchecked.py

index fdf052d269440190dbdf7f0281662f4646ac7bba..7b0f9aba8e3897b26c8e6c4a55da5486a60e5766 100755 (executable)
@@ -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"]