]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make check_subsystem_order work in distcheck builds.
authorNick Mathewson <nickm@torproject.org>
Sat, 4 Apr 2020 15:31:30 +0000 (11:31 -0400)
committerteor <teor@torproject.org>
Tue, 7 Apr 2020 07:36:02 +0000 (17:36 +1000)
scripts/maint/practracker/includes.py

index e08fd0d7060ef6a283592bd374adf515ed4d699a..ff465bde63465103b432ddc86decd33d9c7175ee 100755 (executable)
@@ -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)