[#298] change libs load priority
This commit is contained in:
parent
c758257eb8
commit
a48ab7f6c1
|
@ -6,14 +6,13 @@ module RPM
|
||||||
extend ::FFI::Library
|
extend ::FFI::Library
|
||||||
|
|
||||||
begin
|
begin
|
||||||
ffi_lib ['rpm', 'librpm.so.2', 'librpm.so.1']
|
ffi_lib ['librpm.so.3', 'librpm.so.2', 'librpm.so.1', 'rpm']
|
||||||
rescue LoadError => e
|
rescue LoadError => e
|
||||||
raise(
|
raise(
|
||||||
"Can't find rpm libs on your system: #{e.message}"
|
"Can't find rpm libs on your system: #{e.message}"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
attach_function 'rpmvercmp', [:string, :string], :int
|
attach_function 'rpmvercmp', [:string, :string], :int
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue