# File lib/puppet/provider/package/yum.rb, line 83 83: def latest 84: upd = latest_info 85: unless upd.nil? 86: # FIXME: there could be more than one update for a package 87: # because of multiarch 88: return "#{upd[:version]}-#{upd[:release]}" 89: else 90: # Yum didn't find updates, pretend the current 91: # version is the latest 92: if properties[:ensure] == :absent 93: raise Puppet::DevError, "Tried to get latest on a missing package" 94: end 95: return properties[:ensure] 96: end 97: end