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

[tor-commits] [nyx/master] Specify installing right sqlite3 on FreeBSD



commit 93f20f9e8b7f276ba8aabfb7b224e3c71bb78aa6
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Tue Oct 31 10:48:55 2017 -0700

    Specify installing right sqlite3 on FreeBSD
    
    I was unsure if FreeBSD had sqlite3 ports for all the python versions but a
    reply on tor-relays@ seems to imply they do. Providing a command for whatever
    interpreter version the user's running.
---
 nyx/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nyx/__init__.py b/nyx/__init__.py
index 0142c5d..f91ef07 100644
--- a/nyx/__init__.py
+++ b/nyx/__init__.py
@@ -74,8 +74,8 @@ emerge dev-lang/python with USE=sqlite.
 SQLITE_UNAVAILABLE_FREEBSD = """\
 Python's sqlite3 module is unavailable. Please run...
 
-  sudo pkg install py27-sqlite3
-"""
+  sudo pkg install py%i%i-sqlite3
+""" % (sys.version_info[:2]
 
 try:
   import sqlite3

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