[#298] change libs load priority
This commit is contained in:
parent
c758257eb8
commit
a48ab7f6c1
|
@ -6,14 +6,13 @@ module RPM
|
|||
extend ::FFI::Library
|
||||
|
||||
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
|
||||
raise(
|
||||
"Can't find rpm libs on your system: #{e.message}"
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
attach_function 'rpmvercmp', [:string, :string], :int
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue