From a48ab7f6c1784534fe3812df382118082be8fb1c Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 12 Sep 2013 00:14:48 +0600 Subject: [PATCH] [#298] change libs load priority --- lib/plugins/rpm.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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