# File lib/puppet/provider/package/openbsd.rb, line 72
72:     def query
73:         hash = {}
74:         info = pkginfo @resource[:name]
75: 
76:         # Search for the version info
77:         if info =~ /Information for (inst:)?#{@resource[:name]}-(\S+)/
78:             hash[:ensure] = $2
79:         else
80:             return nil
81:         end
82: 
83:         # And the description
84:         if info =~ /Comment:\s*\n(.+)/
85:             hash[:description] = $1
86:         end
87: 
88:         return hash
89:     end