# File lib/chef/provider/package/yum.rb, line 1148 def action_upgrade # Could be uninstalled or have no candidate if @current_resource.version.nil? || candidate_version.nil? super # Ensure the candidate is newer elsif RPMVersion.parse(candidate_version) > RPMVersion.parse(@current_resource.version) super else Chef::Log.debug("#{@new_resource} is at the latest version - nothing to do") end end