зеркало из https://github.com/mozilla/gecko-dev.git
Bug 362686: install-app from zip fails, patch by Tuukka Tolvanen <tuukka.tolvanen@gmail.com>, r=bsmedberg
This commit is contained in:
Родитель
6436a564cb
Коммит
5a928ff5ea
|
@ -178,7 +178,7 @@ zipExtractor.prototype = {
|
||||||
var file = aDestination.clone();
|
var file = aDestination.clone();
|
||||||
|
|
||||||
var dirs = aZipEntry.split(/\//);
|
var dirs = aZipEntry.split(/\//);
|
||||||
var isDirectory = path.match(/\/$/) != null;
|
var isDirectory = /\/$/.test(aZipEntry);
|
||||||
|
|
||||||
var end = dirs.length;
|
var end = dirs.length;
|
||||||
if (!isDirectory)
|
if (!isDirectory)
|
||||||
|
@ -193,7 +193,7 @@ zipExtractor.prototype = {
|
||||||
|
|
||||||
if (!isDirectory) {
|
if (!isDirectory) {
|
||||||
file.append(dirs[end]);
|
file.append(dirs[end]);
|
||||||
aZipReader.extract(path, file);
|
aZipReader.extract(aZipEntry, file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче