diff --git a/html/updates.rss.erb b/html/updates.rss.erb index e4a4ec70..9db1e0f1 100644 --- a/html/updates.rss.erb +++ b/html/updates.rss.erb @@ -15,7 +15,7 @@ require 'json' require 'time' require 'ostruct' - JSON.parse(File.open("../archive.json").read).each do |pkgname, info| + packages = JSON.parse(File.open("../archive.json").read).map do |pkgname, info| versions, deps, descr, pkgtype = info version = versions.join('.') package = OpenStruct.new @@ -26,6 +26,9 @@ package.build_time = Time.new(version[0..3].to_i, version[4..5].to_i, version[6..7].to_i, hour_portion[0..1].to_i, hour_portion[2..3].to_i) package.url = "#{base_url}packages/#{pkgname}-#{version}." + (pkgtype == "single" ? "el" : "tar") package.info_url = "#{base_url}##{pkgname}" + package + end + packages.sort_by { |p| p.version }.reverse[0..200].each do |package| %> <%= package.name %> (<%= package.version %>) --- <%= ERB::Util.html_escape package.description %>