mirror of
https://github.com/correl/melpa.git
synced 2024-12-23 03:00:12 +00:00
Display package pages when accessed via old names
This commit is contained in:
parent
882e3a4877
commit
ab7709dbb6
1 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,12 @@
|
||||||
return packages;
|
return packages;
|
||||||
};
|
};
|
||||||
var packagesByName = {};
|
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) {
|
this.packageWithName = function(name) {
|
||||||
return packagesByName[name];
|
return packagesByName[name];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue