summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-01-19 11:37:41 +0100
committerLubomir Rintel <lkundrak@v3.sk>2017-01-19 13:36:03 +0100
commit22722b77322fb3ddc1a99509340e8175acddb154 (patch)
treec6694716cc401487feac660937f7424c79708acf
parent4215c2640a6a24360fc0bfc59f45c6af3132ebb4 (diff)
downloadNetworkManager-22722b77322fb3ddc1a99509340e8175acddb154.tar.gz
build: fix build with older gi
Fixes: 6c96aafaa9a61ca4fe713551a4cd4b15fb7e8a63
-rwxr-xr-xlibnm/generate-setting-docs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnm/generate-setting-docs.py b/libnm/generate-setting-docs.py
index 135bf2a56e..e1ea9723dc 100755
--- a/libnm/generate-setting-docs.py
+++ b/libnm/generate-setting-docs.py
@@ -30,6 +30,11 @@ try:
libs.reverse()
for lib in libs:
GIRepository.Repository.prepend_library_path(lib)
+except AttributeError:
+ # An old GI version, that has no prepend_library_path
+ # It's alright, it probably interprets LD_LIBRARY_PATH
+ # correctly.
+ pass
except KeyError:
pass