]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
practracker: Don't read editor temp files
authorteor <teor@torproject.org>
Mon, 28 Oct 2019 03:09:58 +0000 (13:09 +1000)
committerteor <teor@torproject.org>
Mon, 28 Oct 2019 03:09:58 +0000 (13:09 +1000)
(Or any dot files.)

Obviously correct changes to already-reviewed code.

scripts/maint/practracker/util.py

index df629110c2f29a6a82db545fe17ddaa046078e62..c38e4c8dd06be48f87fd855a57cc62c14e88050c 100644 (file)
@@ -33,6 +33,9 @@ def get_tor_c_files(tor_topdir, include_dirs=None):
                 # We only care about .c and .h files
                 if not (filename.endswith(".c") or filename.endswith(".h")):
                     continue
+                # Avoid editor temporary files
+                if filename.startswith("."):
+                    continue
                 if filename in EXCLUDE_FILES:
                     continue