commit d25909235c758996d9e02360ba12b0222b1e5c85 Author: teor teor@torproject.org Date: Sun Jun 23 16:28:14 2019 +1000
script: Add a source line to the header, because type must be fallback
Closes 30947. --- updateFallbackDirs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/updateFallbackDirs.py b/updateFallbackDirs.py index 6bf973e..930de67 100755 --- a/updateFallbackDirs.py +++ b/updateFallbackDirs.py @@ -2257,17 +2257,17 @@ def list_fallbacks(whitelist, exact=False): """ Fetches required onionoo documents and evaluates the fallback directory criteria for each of the relays, passing exact to apply_filter_lists(). """ - if whitelist['check_existing']: - print "/* type=fallback */" - else: - print "/* type=whitelist */" - + print "/* type=fallback */" print ("/* version={} */" .format(cleanse_c_multiline_comment(FALLBACK_FORMAT_VERSION))) now = datetime.datetime.utcnow() timestamp = now.strftime('%Y%m%d%H%M%S') print ("/* timestamp={} */" .format(cleanse_c_multiline_comment(timestamp))) + if whitelist['check_existing']: + print "/* source=fallback */" + else: + print "/* source=whitelist */" # end the header with a separator, to make it easier for parsers print SECTION_SEPARATOR_COMMENT