]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Improve comments in fallback update script
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Fri, 29 Apr 2016 01:43:55 +0000 (11:43 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Fri, 29 Apr 2016 01:43:55 +0000 (11:43 +1000)
scripts/maint/updateFallbackDirs.py

index d27c1449eec1842c282e28913f5f5e2ae95b4e55..7e882a813b45c7d022cd279c9de1dec7a27864fd 100755 (executable)
@@ -1,6 +1,13 @@
 #!/usr/bin/python
 
 # Usage: scripts/maint/updateFallbackDirs.py > src/or/fallback_dirs.inc
+#
+# This script should be run from a stable, reliable network connection,
+# with no other network activity (and not over tor).
+# If this is not possible, please disable:
+# PERFORM_IPV4_DIRPORT_CHECKS and PERFORM_IPV6_DIRPORT_CHECKS
+#
+# Needs dateutil (and potentially other python packages)
 # Needs stem available in your PYTHONPATH, or just ln -s ../stem/stem .
 # Optionally uses ipaddress (python 3 builtin) or py2-ipaddress (package)
 # for netblock analysis, in PYTHONPATH, or just
@@ -1061,7 +1068,7 @@ class Candidate(object):
     downloader = DescriptorDownloader()
     start = datetime.datetime.utcnow()
     # some directory mirrors respond to requests in ways that hang python
-    # sockets, which is why we long this line here
+    # sockets, which is why we log this line here
     logging.info('Initiating consensus download from %s (%s:%d).', nickname,
                  dirip, dirport)
     # there appears to be about 1 second of overhead when comparing stem's