# File lib/puppet/provider/package/blastwave.rb, line 36 36: def self.blastlist(hash) 37: command = ["-c"] 38: 39: if hash[:justme] 40: command << hash[:justme] 41: end 42: 43: output = pkgget command 44: 45: list = output.split("\n").collect do |line| 46: next if line =~ /^#/ 47: next if line =~ /^WARNING/ 48: next if line =~ /localrev\s+remoterev/ 49: 50: blastsplit(line) 51: end.reject { |h| h.nil? } 52: 53: if hash[:justme] 54: return list[0] 55: else 56: list.reject! { |h| 57: h[:ensure] == :absent 58: } 59: return list 60: end 61: 62: end