# File lib/puppet/provider/package/openbsd.rb, line 98 98: def query 99: hash = {} 100: info = pkginfo @resource[:name] 101: 102: # Search for the version info 103: if info =~ /Information for (inst:)?#{@resource[:name]}-(\S+)/ 104: hash[:ensure] = $2 105: else 106: return nil 107: end 108: 109: hash 110: end