diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-04-04 11:31:30 -0400 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-07 17:36:02 +1000 |
commit | d3db84c1e7792e75f75d3fcbf66ba1bbd7617aa9 (patch) | |
tree | c4f38cdfc93ed83d55c162e9c8e4fe871f528544 /scripts | |
parent | 5f49695f94abd089dfbaa2e219ac277aa5c15242 (diff) | |
download | tor-d3db84c1e7792e75f75d3fcbf66ba1bbd7617aa9.tar.gz tor-d3db84c1e7792e75f75d3fcbf66ba1bbd7617aa9.zip |
Make check_subsystem_order work in distcheck builds.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maint/practracker/includes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/maint/practracker/includes.py b/scripts/maint/practracker/includes.py index e08fd0d706..ff465bde63 100755 --- a/scripts/maint/practracker/includes.py +++ b/scripts/maint/practracker/includes.py @@ -270,6 +270,11 @@ def open_or_stdin(fname): return open(fname) def check_subsys_file(fname, uses_dirs): + if not uses_dirs: + # We're doing a distcheck build, or for some other reason there are + # no .may_include files. + return False + uses_dirs = { normalize_srcdir(k) : { normalize_srcdir(d) for d in v } for (k,v) in uses_dirs.items() } uses_closure = closure(uses_dirs) |