diff --git a/lib/facter/pygpgme.rb b/lib/facter/pygpgme.rb index 50080ee..4ac11c8 100644 --- a/lib/facter/pygpgme.rb +++ b/lib/facter/pygpgme.rb @@ -5,8 +5,8 @@ when /debian|ubuntu|windows/ 'true' else - output = Facter::Core::Execution.exec('rpm -qa | grep pygpgme') - if !/^pygpgme.*/.match(output).nil? + output = Facter::Core::Execution.exec('rpm -q pygpgme') + if !/^pygpgme-.*/.match(output).nil? 'true' else 'false'