зеркало из https://github.com/mozilla/gecko-dev.git
Fix intermittent failure of Bug 451085 on Mac OS X. r=me
This commit is contained in:
Родитель
b52d3794d5
Коммит
0c01d3febf
|
@ -196,9 +196,46 @@ function remove_dirs_and_files () {
|
||||||
if (file.exists())
|
if (file.exists())
|
||||||
file.remove(false);
|
file.remove(false);
|
||||||
|
|
||||||
|
file = dir.clone();
|
||||||
|
file.append("updates");
|
||||||
|
file.append("last-update.log");
|
||||||
|
try {
|
||||||
|
if (file.exists())
|
||||||
|
file.remove(false);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
}
|
||||||
|
|
||||||
|
file = dir.clone();
|
||||||
|
file.append("updates");
|
||||||
|
file.append("0");
|
||||||
|
file.append("update.mar");
|
||||||
|
try {
|
||||||
|
if (file.exists())
|
||||||
|
file.remove(false);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
}
|
||||||
|
|
||||||
|
file = dir.clone();
|
||||||
|
file.append("updates");
|
||||||
|
file.append("0");
|
||||||
|
file.append("update.status");
|
||||||
|
try {
|
||||||
|
if (file.exists())
|
||||||
|
file.remove(false);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// This fails sporadically on Mac OS X so wrap it in a try catch
|
||||||
dir.append("updates");
|
dir.append("updates");
|
||||||
if (dir.exists())
|
try {
|
||||||
dir.remove(true);
|
if (dir.exists())
|
||||||
|
dir.remove(true);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче