diff --git a/lib/plugins/rpm.rb b/lib/plugins/rpm.rb index 5a28dd869..488ee23b3 100644 --- a/lib/plugins/rpm.rb +++ b/lib/plugins/rpm.rb @@ -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