Fix updates.rss.erb for new json structure

This commit is contained in:
Steve Purcell 2014-06-03 14:31:44 +01:00
parent 888b352567
commit a6863d79e3

View file

@ -16,7 +16,10 @@
require 'time'
require 'ostruct'
packages = JSON.parse(File.open("archive.json").read).map do |pkgname, info|
versions, deps, descr, pkgtype = info
versions = info["ver"]
deps = info["deps"]
descr = info["desc"]
pkgtype = info["type"]
version = versions.join('.')
package = OpenStruct.new
package.name = pkgname