    # File lib/chef/provider/package.rb, line 86
          def action_upgrade
            if candidate_version.nil?
              Chef::Log.debug("#{@new_resource} no candidate version - nothing to do")
            elsif @current_resource.version == candidate_version
              Chef::Log.debug("#{@new_resource} is at the latest version - nothing to do")
            else
              @new_resource.version(candidate_version)
              orig_version = @current_resource.version || "uninstalled"
              converge_by("upgrade package #{@new_resource.package_name} from #{orig_version} to #{candidate_version}") do
                status = upgrade_package(@new_resource.package_name, candidate_version)
                Chef::Log.info("#{@new_resource} upgraded from #{orig_version} to #{candidate_version}")
              end
            end
          end