# File lib/puppet/provider/package/rpm.rb, line 54
54:   def query
55:     #NOTE: Prior to a fix for issue 1243, this method potentially returned a cached value
56:     #IF YOU CALL THIS METHOD, IT WILL CALL RPM
57:     #Use get(:property) to check if cached values are available
58:     cmd = ["-q", @resource[:name], "--nosignature", "--nodigest", "--qf", "#{NEVRAFORMAT}\n"]
59: 
60:     begin
61:       output = rpm(*cmd)
62:     rescue Puppet::ExecutionFailure
63:       return nil
64:     end
65: 
66:     # FIXME: We could actually be getting back multiple packages
67:     # for multilib
68:     @property_hash.update(self.class.nevra_to_hash(output))
69: 
70:     @property_hash.dup
71:   end