    # File lib/chef/provider/package/yum.rb, line 170
            def load_current_resource
              @current_resource = Chef::Resource::Package.new(@new_resource.name)
              @current_resource.package_name(@new_resource.package_name)

              if @new_resource.source
                unless ::File.exists?(@new_resource.source)
                  raise Chef::Exceptions::Package, "Package #{@new_resource.name} not found: #{@new_resource.source}"
                end

                Chef::Log.debug("#{@new_resource} checking rpm status")
                status = popen4("rpm -qp --queryformat '%{NAME} %{VERSION}-%{RELEASE}\n' #{@new_resource.source}") do |pid, stdin, stdout, stderr|
                  stdout.each do |line|
                    case line
                    when /([\w\d_.-]+)\s([\w\d_.-]+)/
                      @current_resource.package_name($1)
                      @new_resource.version($2)
                    end
                  end
                end
              end

              Chef::Log.debug("#{@new_resource} checking yum info for #{@new_resource.package_name}#{yum_arch}")

              @yum.refresh

              installed_version = @yum.installed_version(@new_resource.package_name, arch)
              @candidate_version = @yum.candidate_version(@new_resource.package_name, arch)

              @current_resource.version(installed_version)
              if candidate_version
                @candidate_version = candidate_version
              else
                @candidate_version = installed_version
              end
              Chef::Log.debug("#{@new_resource} installed version: #{installed_version} candidate version: #{candidate_version}")

              @current_resource
            end