Browse Source

Lower check of TOR_DISABLE_PRACTRACKER

Since we sometimes call practracker directly, that's where we should
check the TOR_DISABLE_PRACTRACKER envvar.
Nick Mathewson 4 years ago
parent
commit
3221dc1b32
2 changed files with 3 additions and 3 deletions
  1. 1 3
      Makefile.am
  2. 2 0
      scripts/maint/practracker/practracker.py

+ 1 - 3
Makefile.am

@@ -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:

+ 2 - 0
scripts/maint/practracker/practracker.py

@@ -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)