[tor-commits] [tor/master] Update lintChanges script to understand 'Minor features (debugging)'

nickm at torproject.org nickm at torproject.org
Tue Aug 2 15:40:38 UTC 2016


commit 5aa6a19de5144e96274d8ddfbc056c8d3bc50298
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Aug 2 11:39:26 2016 -0400

    Update lintChanges script to understand 'Minor features (debugging)'
    
    Previously we would give a warning because we didn't say "Fixes bug
    Foo" on these.
---
 scripts/maint/lintChanges.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py
index 48edd06..0b8c5e5 100755
--- a/scripts/maint/lintChanges.py
+++ b/scripts/maint/lintChanges.py
@@ -44,7 +44,6 @@ def lintfile(fname):
         warn("bug number {} does not appear".format(bugnum))
 
     lines = contents.split("\n")
-    isBug = ("bug" in lines[0] or "fix" in lines[0])
 
     m = re.match(r'^[ ]{2}o ([^\(:]*)([^:]*):', contents)
     if not m:
@@ -56,6 +55,7 @@ def lintfile(fname):
            '(' not in m.group(2)):
         warn("Missing subcategory on %s"%m.group(1))
 
+    isBug = ("bug" in m.group(1).lower() or "fix" in m.group(1).lower())
 
     contents = " ".join(contents.split())
 



More information about the tor-commits mailing list