[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [oonib/master] Check version semantically instead of by string (the old code answers wrong for '0.10.0').



commit d588abacd02722a39a46b96e0ad0ef62542d75e1
Author: Darius Bacon <darius@xxxxxx>
Date:   Fri Mar 28 10:58:20 2014 -0700

    Check version semantically instead of by string (the old code answers wrong for '0.10.0').
---
 oonib/runner.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oonib/runner.py b/oonib/runner.py
index 57b0b9f..10bcf65 100644
--- a/oonib/runner.py
+++ b/oonib/runner.py
@@ -28,7 +28,7 @@ from oonib import oonibackend
 from oonib import log
 
 from txtorcon import __version__ as txtorcon_version
-if txtorcon_version < '0.9.0':
+if tuple(map(int, txtorcon_version.split('.'))) < (0,9,0):
     """
     Fix for bug in txtorcon versions < 0.9.0 where TCPHiddenServiceEndpoint
     listens on all interfaces by default.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits