Fix for broken archive json (org-drill-table)

This commit is contained in:
Steve Purcell 2014-05-27 13:46:40 +01:00
parent f352556915
commit 75c492f9b7

View file

@ -124,6 +124,9 @@
var listed = _.intersection(_.keys(archive), _.keys(recipes));
return new melpa.PackageList(_(listed).reduce(function(pkgs, name) {
var built = archive[name];
if (!built || !built[0]) {
return pkgs;
}
var recipe = recipes[name];
var descr = built[2].replace(/\s*\[((?:source: )?\w+)\]$/, "");
var version = built[0].join(".");