mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 04:40:09 +01:00
build: fix build with older gi
Fixes:6c96aafaa9(cherry picked from commit22722b7732) (cherry picked from commitb916d9dfe0)
This commit is contained in:
parent
bc2e0269a4
commit
263dc2dfd1
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue