mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Make the topological-sort output off by default
This commit is contained in:
parent
c3c8c926bf
commit
fae29f7b42
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue