mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Add a generated timestamp to the fallback directory header
This can act as a revision counter, as requested by atagar in 24742. Part of 24725.
This commit is contained in:
parent
70490df76a
commit
9864fcd4e3
@ -2217,6 +2217,10 @@ def list_fallbacks(whitelist, blacklist):
|
||||
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)))
|
||||
# end the header with a separator, to make it easier for parsers
|
||||
print SECTION_SEPARATOR_COMMENT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user