[libgit2-glib] Chomp of newline from output for libdir



commit 3a60fa44cf079dc17737152ffd0c59827e83bc0a
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Nov 23 13:28:59 2013 +0100

    Chomp of newline from output for libdir

 tools/coverage.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/coverage.py b/tools/coverage.py
index 12110eb..f4397b0 100755
--- a/tools/coverage.py
+++ b/tools/coverage.py
@@ -7,12 +7,12 @@ from clang import cindex
 sys.path = sys.path[1:]
 
 def configure_libclang():
-    llvm_libdirs = ['/usr/lib/llvm-3.2/lib']
+    llvm_libdirs = ['/usr/lib/llvm-3.2/lib', '/usr/lib64/llvm']
 
     try:
-        libdir = subprocess.check_output(['llvm-config', '--libdir']).decode('utf-8')
+        libdir = subprocess.check_output(['llvm-config', '--libdir']).decode('utf-8').strip()
         llvm_libdirs.insert(0, libdir)
-    except:
+    except OSError:
         pass
 
     for d in llvm_libdirs:


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