summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-07 10:59:23 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-14 16:07:36 -0500
commitfae29f7b424460353b3a5ab44e1394fdc28cc4c4 (patch)
tree4039c2104b5e83d1606b7b26ca382f57ff361382 /scripts
parentc3c8c926bfc8e44e28f3a404e3452f014f6bcbaa (diff)
downloadtor-fae29f7b424460353b3a5ab44e1394fdc28cc4c4.tar.gz
tor-fae29f7b424460353b3a5ab44e1394fdc28cc4c4.zip
Make the topological-sort output off by default
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/checkIncludes.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/maint/checkIncludes.py b/scripts/maint/checkIncludes.py
index ecda3fc565..3afd9bbebe 100755
--- a/scripts/maint/checkIncludes.py
+++ b/scripts/maint/checkIncludes.py
@@ -135,6 +135,7 @@ def load_include_rules(fname):
return result
list_unused = False
+log_sorted_levels = False
uses_dirs = { }
@@ -169,11 +170,12 @@ while uses_dirs:
for k in cur_level:
del uses_dirs[k]
n += 1
- if cur_level:
+ if cur_level and log_sorted_levels:
print(n, cur_level)
if n > 100:
break
if uses_dirs:
- print("Circular dependencies in here somewhere:", uses_dirs)
+ print("There are circular .may_include dependencies in here somewhere:",
+ uses_dirs)
sys.exit(1)