mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 11:58:12 +02:00
build: fix build with older gi
Fixes:6c96aafaa9(cherry picked from commit22722b7732)
This commit is contained in:
parent
2ee8462774
commit
b916d9dfe0
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,11 @@ try:
|
||||||
libs.reverse()
|
libs.reverse()
|
||||||
for lib in libs:
|
for lib in libs:
|
||||||
GIRepository.Repository.prepend_library_path(lib)
|
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:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue