1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 17:25:45 +01:00

No more randomly generated package subtree paths.

This commit is contained in:
Kris Maglione
2012-01-13 02:25:57 -05:00
parent cc38e7057d
commit cbee50966b
7 changed files with 291 additions and 275 deletions

View File

@@ -215,7 +215,8 @@ var ConfigBase = Class("ConfigBase", {
let jar = io.isJarURL(uri);
if (jar) {
let prefix = getDir(jar.JAREntry);
var res = iter(s.slice(prefix.length).replace(/\/.*/, "") for (s in io.listJar(jar.JARFile, prefix)))
var res = iter(s.slice(prefix.length).replace(/\/.*/, "")
for (s in io.listJar(jar.JARFile, prefix)))
.toArray();
}
else {
@@ -225,7 +226,7 @@ var ConfigBase = Class("ConfigBase", {
if (f.isDirectory())).array;
}
function exists(pkg) services["resource:"].hasSubstitution("dactyl-locale-" + pkg);
let exists = function exists(pkg) services["resource:"].hasSubstitution("dactyl-locale-" + pkg);
return array.uniq([this.appLocale, this.appLocale.replace(/-.*/, "")]
.filter(exists)