    # File lib/chef/provider/package/yum.rb, line 89
              def version(package_name, type, arch)
                if (x = @data[package_name])
                  if (y = x[type])
                    if arch
                      if (z = y[arch])
                        return "#{z[:version]}-#{z[:release]}"
                      end
                    else
                      # no arch specified - take the first match
                      z = y.to_a[0][1]
                      return "#{z[:version]}-#{z[:release]}"
                    end
                  end
                end

                nil
              end