# File lib/puppet/provider/package/dpkg.rb, line 38
38:     def self.parse_line(line)
39:         if match = REGEX.match(line)
40:             hash = {}
41: 
42:             FIELDS.zip(match.captures) { |field,value|
43:                 hash[field] = value
44:             }
45: 
46:             hash[:provider] = self.name
47: 
48:             if hash[:status] == 'not-installed'
49:                 hash[:ensure] = :purged
50:             elsif hash[:status] != "installed"
51:                 hash[:ensure] = :absent
52:             end
53:         else
54:             Puppet.warning "Failed to match dpkg-query line %s" % line.inspect
55:             return nil
56:         end
57: 
58:         return hash
59:     end