diff --git a/html/js/melpa.js b/html/js/melpa.js index 006358d3..440f88dc 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -76,7 +76,12 @@ return packages; }; var packagesByName = {}; - _.each(packages, function(p) { packagesByName[p.name] = p; }); + _.each(packages, function(p) { + packagesByName[p.name] = p; + if(p.oldNames) { + _.each(p.oldNames, function(n) { packagesByName[n] = p; }); + } + }); this.packageWithName = function(name) { return packagesByName[name]; };