]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
lintchanges: Allow 'fixes bugs a, b, and c'
authorNick Mathewson <nickm@torproject.org>
Sun, 5 Nov 2017 19:41:39 +0000 (14:41 -0500)
committerNick Mathewson <nickm@torproject.org>
Sun, 5 Nov 2017 19:41:39 +0000 (14:41 -0500)
scripts/maint/lintChanges.py

index c2dda6dc81a05824727e4b0a6e9af411648031d3..d5b8fcae5cf3c4ffca146d01ffcfeef57748c870 100755 (executable)
@@ -76,13 +76,13 @@ def lintfile(fname):
 
     if isBug and not re.search(r'(\d+)', contents):
         warn("Ticket marked as bugfix, but does not mention a number.")
-    elif isBug and not re.search(r'Fixes ([a-z ]*)bug (\d+)', contents):
+    elif isBug and not re.search(r'Fixes ([a-z ]*)bugs? (\d+)', contents):
         warn("Ticket marked as bugfix, but does not say 'Fixes bug XXX'")
 
     if re.search(r'[bB]ug (\d+)', contents):
         if not re.search(r'[Bb]ugfix on ', contents):
             warn("Bugfix does not say 'bugfix on X.Y.Z'")
-        elif not re.search('[fF]ixes ([a-z ]*)bug (\d+); bugfix on ',
+        elif not re.search('[fF]ixes ([a-z ]*)bugs? (\d+)((, \d+)* and \d+)?; bugfix on ',
                            contents):
             warn("Bugfix does not say 'Fixes bug X; bugfix on Y'")
         elif re.search('tor-([0-9]+)', contents):