зеркало из https://github.com/mozilla/pjs.git
Bug 326238 - xulrunner fails if <installdir>/extensions is not available and cannot be written. r=mconnor
This commit is contained in:
Родитель
cf8c7987af
Коммит
370ffe8d3c
|
@ -944,7 +944,13 @@ function DirectoryInstallLocation(name, location, restricted, priority) {
|
|||
throw new Error("location must be a directoy!");
|
||||
}
|
||||
else {
|
||||
location.create(nsILocalFile.DIRECTORY_TYPE, 0775);
|
||||
try {
|
||||
location.create(nsILocalFile.DIRECTORY_TYPE, 0775);
|
||||
}
|
||||
catch (e) {
|
||||
LOG("DirectoryInstallLocation: failed to create location " +
|
||||
" directory = " + location.path + ", exception = " + e + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
this._location = location;
|
||||
|
|
Загрузка…
Ссылка в новой задаче