Add a TOR_DISABLE_PRACTRACKER envvar for use by folks who don't care

Fixes part of bug 30752
This commit is contained in:
Nick Mathewson 2019-07-17 15:28:48 +02:00
parent 6303c9aa26
commit d6a3636cdc
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -227,6 +227,9 @@ Please fix the problems if you can, and update the exceptions file
({}) if you can't.
See doc/HACKING/HelpfulTools.md for more information on using practracker.\
You can disable this message by setting the TOR_DISABLE_PRACTRACKER environment
variable.
""".format(found_new_issues, exceptions_file)
print(new_issues_str)