[tor-commits] [tor/master] Warn on Tor versions with the 'tor-' prefix

nickm at torproject.org nickm at torproject.org
Wed Jan 11 14:16:24 UTC 2017


commit 99cbadf143f8455ff6217be71b5037b84dfa81a6
Author: cypherpunks <cypherpunks at torproject.org>
Date:   Mon Dec 19 08:00:56 2016 +0000

    Warn on Tor versions with the 'tor-' prefix
    
    Closes ticket 21096.
---
 changes/ticket21096          | 3 +++
 scripts/maint/lintChanges.py | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/changes/ticket21096 b/changes/ticket21096
new file mode 100644
index 0000000..4265a3d
--- /dev/null
+++ b/changes/ticket21096
@@ -0,0 +1,3 @@
+  o Minor features (linting):
+    - Enhance the changes file linter to warn on Tor versions that are
+      prefixed with 'tor-'. Closes ticket 21096.
diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py
index 3694c4b..bf06064 100755
--- a/scripts/maint/lintChanges.py
+++ b/scripts/maint/lintChanges.py
@@ -75,6 +75,8 @@ def lintfile(fname):
         elif not re.search('[fF]ixes ([a-z ]*)bug (\d+); bugfix on ',
                            contents):
             warn("bugfix incant is not semicoloned")
+        elif re.search('tor-([0-9]+)', contents):
+            warn("do not prefix versions with 'tor-'")
 
 
 if __name__ == '__main__':



More information about the tor-commits mailing list