[tor-commits] [fallback-scripts/master] script: Add a source line to the header, because type must be fallback
teor at torproject.org
teor at torproject.org
Thu Aug 1 06:52:39 UTC 2019
commit df23446e07ad7c097427aa6951e98071f4727195
Author: teor <teor at 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
More information about the tor-commits
mailing list