mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
CCK only - not part of build Only use the ZipWritercomponent if a zip EXE isn't specified. also, if ZipWriterComponent fails, try zip.exe
This commit is contained in:
parent
2607a65d20
commit
762154f53a
@ -1086,7 +1086,7 @@ function CCKZip(zipfile, location)
|
||||
file.remove(false);
|
||||
} catch (ex) {}
|
||||
|
||||
if (Components.interfaces.IZipWriterComponent) {
|
||||
if ((document.getElementById("zipLocation").value == "") && (Components.interfaces.IZipWriterComponent)) {
|
||||
var archivefileobj = location.clone();
|
||||
archivefileobj.append(zipfile);
|
||||
|
||||
@ -1140,11 +1140,10 @@ function CCKZip(zipfile, location)
|
||||
}
|
||||
|
||||
zipwriterobj.commitUpdates();
|
||||
|
||||
return;
|
||||
} catch (e) {
|
||||
gPromptService.alert(window, "", "ZIPWriterComponent error");
|
||||
gPromptService.alert(window, "", "ZIPWriterComponent error - attempting ZIP");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
var zipLocation = document.getElementById("zipLocation").value;
|
||||
|
Loading…
Reference in New Issue
Block a user