    # File lib/chef/provider/package/yum.rb, line 787
              def package_available?(package_name)
                refresh

                if @rpmdb.lookup(package_name)
                  return true
                else
                  if package_name =~ %r{^(.*)\.(.*)$}
                    pkg_name = $1
                    pkg_arch = $2

                    if matches = @rpmdb.lookup(pkg_name)
                      matches.each do |m|
                        return true if m.arch == pkg_arch
                      end
                    end
                  end
                end

                return false
              end