]> git.decadent.org.uk Git - dak.git/commitdiff
Lowercase urgency a little earlier
authorJoerg Jaspert <joerg@debian.org>
Sat, 7 Jun 2008 23:18:40 +0000 (01:18 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sat, 7 Jun 2008 23:18:40 +0000 (01:18 +0200)
ChangeLog
dak/process_unchecked.py

index 24b4f45bb0b164e8edaedcb5429d3f1238c66679..a71b8bdb3063bea8a0fbb95f5dde7a380aca8721 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-08  Joerg Jaspert  <joerg@debian.org>
+
+       * dak/process_unchecked.py (check_urgency): Lowercase urgency
+       before we (eventually) warn on it. Patch taken from Russ Allbery.
+
 2008-05-28  Frans Pop  <fjp@debian.org>
 
        * add autobyhand support for task overrides (from tasksel)
index 34d1739f7665a025f26581a4a24c19a2d838a44e..9b8d4de5ca3b12e86b54acd789a0af1daa4972d3 100755 (executable)
@@ -906,10 +906,10 @@ 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()
         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"]
-        changes["urgency"] = changes["urgency"].lower()
 
 ################################################################################