Lower check of TOR_DISABLE_PRACTRACKER

Since we sometimes call practracker directly, that's where we should
check the TOR_DISABLE_PRACTRACKER envvar.
This commit is contained in:
Nick Mathewson 2019-08-01 08:40:56 -04:00
parent 8d3f3e5d30
commit 3221dc1b32
2 changed files with 3 additions and 3 deletions

View File

@ -369,9 +369,7 @@ endif
check-best-practices: check-best-practices:
if USEPYTHON if USEPYTHON
@if test "$$TOR_DISABLE_PRACTRACKER" = ""; then \ @$(PYTHON) $(top_srcdir)/scripts/maint/practracker/practracker.py $(top_srcdir)
$(PYTHON) $(top_srcdir)/scripts/maint/practracker/practracker.py $(top_srcdir); \
fi
endif endif
practracker-regen: practracker-regen:

View File

@ -246,4 +246,6 @@ variable.
sys.exit(found_new_issues) sys.exit(found_new_issues)
if __name__ == '__main__': if __name__ == '__main__':
if os.environ.get("TOR_DISABLE_PRACTRACKER"):
sys.exit(0)
main(sys.argv) main(sys.argv)