[#298] change libs load priority

This commit is contained in:
Alexander Machehin 2013-09-12 00:14:48 +06:00
parent c758257eb8
commit a48ab7f6c1
1 changed files with 1 additions and 2 deletions

View File

@ -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