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

[tor-commits] [nyx/master] Provide sqlite3 intructions for Gentoo



commit 8be7ef638121deef6c1b9f41353cae7c1ec76e13
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Mon Oct 30 14:07:20 2017 -0700

    Provide sqlite3 intructions for Gentoo
    
    Message thanks to Toralf.
---
 nyx/__init__.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/nyx/__init__.py b/nyx/__init__.py
index 11cdf33..69c8099 100644
--- a/nyx/__init__.py
+++ b/nyx/__init__.py
@@ -66,6 +66,11 @@ don't bundle this with the interpreter. Please let us know at...
   https://trac.torproject.org/projects/tor/wiki/doc/nyx/bugs
 """
 
+SQLITE_UNAVAILABLE_GENTOO = """\
+Python's sqlite3 module is unavailable. For Gentoo please run
+emerge dev-lang/python with USE=sqlite.
+"""
+
 SQLITE_UNAVAILABLE_FREEBSD = """\
 Python's sqlite3 module is unavailable. Please run...
 
@@ -75,7 +80,9 @@ Python's sqlite3 module is unavailable. Please run...
 try:
   import sqlite3
 except ImportError:
-  if stem.util.system.is_bsd():
+  if stem.util.system.is_gentoo():
+    print(SQLITE_UNAVAILABLE_GENTOO)
+  elif stem.util.system.is_bsd():
     print(SQLITE_UNAVAILABLE_FREEBSD)
   else:
     print(SQLITE_UNAVAILABLE)

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