From a6863d79e3d0d0a35a1497c25899cb50ed2b48eb Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Tue, 3 Jun 2014 14:31:44 +0100 Subject: [PATCH] Fix updates.rss.erb for new json structure --- html/updates.rss.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/updates.rss.erb b/html/updates.rss.erb index 9d7e5928..b60d2cf3 100644 --- a/html/updates.rss.erb +++ b/html/updates.rss.erb @@ -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