]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Lower check of TOR_DISABLE_PRACTRACKER
authorNick Mathewson <nickm@torproject.org>
Thu, 1 Aug 2019 12:40:56 +0000 (08:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 1 Aug 2019 12:40:56 +0000 (08:40 -0400)
Since we sometimes call practracker directly, that's where we should
check the TOR_DISABLE_PRACTRACKER envvar.

Makefile.am
scripts/maint/practracker/practracker.py

index d6ea72c17a8ce32c6b066cae91205ba719dc2904..b1e94ae0fce2aa1a75a932f86e50c43850d06949 100644 (file)
@@ -369,9 +369,7 @@ endif
 
 check-best-practices:
 if USEPYTHON
-       @if test "$$TOR_DISABLE_PRACTRACKER" = ""; then \
-               $(PYTHON) $(top_srcdir)/scripts/maint/practracker/practracker.py $(top_srcdir); \
-       fi
+       @$(PYTHON) $(top_srcdir)/scripts/maint/practracker/practracker.py $(top_srcdir)
 endif
 
 practracker-regen:
index a60b0a8425ea89e1fec40cdd791b8863d1df32b6..245d01d36d44f07a3113cd4d3e9e0290e44f69e1 100755 (executable)
@@ -246,4 +246,6 @@ variable.
     sys.exit(found_new_issues)
 
 if __name__ == '__main__':
+    if os.environ.get("TOR_DISABLE_PRACTRACKER"):
+        sys.exit(0)
     main(sys.argv)