# File lib/puppet/provider/package/up2date.rb, line 24 24: def latest 25: #up2date can only get a list of *all* available packages? 26: output = up2date "--showall" 27: 28: if output =~ /^#{Regexp.escape @resource[:name]}-(\d+.*)\.\w+/ 29: return $1 30: else 31: # up2date didn't find updates, pretend the current 32: # version is the latest 33: return @property_hash[:ensure] 34: end 35: end