[gobject-introspection] scanner: Skip ldd for library by filename



commit 581f74be8e4919ac7dd4bec036eeda7605f425d7
Author: Olivier CrĂȘte <olivier crete collabora com>
Date:   Mon Nov 5 16:57:57 2018 -0500

    scanner: Skip ldd for library by filename

 giscanner/shlibs.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index 7b7b2d02..f70c54da 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -119,7 +119,10 @@ def _resolve_non_libtool(options, binary, libraries):
 def resolve_from_ldd_output(libraries, output, basename=False):
     patterns = {}
     for library in libraries:
-        patterns[library] = _ldd_library_pattern(library)
+        if not os.path.isfile(library):
+            patterns[library] = _ldd_library_pattern(library)
+    if len(patterns) == 0:
+        return []
 
     shlibs = []
     for line in output.splitlines():


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