зеркало из https://github.com/mozilla/pjs.git
Fix for 81523 and 81515. Checking in for ssu, see details in the bug reports.
r=sgehani, rs/sr=mscott, a=chofmann
This commit is contained in:
Родитель
71c26619d6
Коммит
528b0bb07b
|
@ -37,3 +37,19 @@ function deleteThisFile(dirKey, file)
|
|||
return(false);
|
||||
}
|
||||
|
||||
// this function deletes a folder (recursively) if it exists
|
||||
function deleteThisFolder(dirKey, folder)
|
||||
{
|
||||
var fToDelete;
|
||||
|
||||
fToDelete = getFolder(dirKey, folder);
|
||||
logComment(folder + " folder: " + fToDelete);
|
||||
if(folder.exists(fToDelete, true))
|
||||
{
|
||||
File.dirRemove(fToDelete);
|
||||
return(true);
|
||||
}
|
||||
else
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFile("Components", "browser.xpt");
|
||||
deleteThisFile("Components", "DOMDataSource.shlb");
|
||||
deleteThisFile("Components", "PSMGlue.shlb");
|
||||
deleteThisFile("Components", "ucth.shlb");
|
||||
deleteThisFile("Program", "defaults/wallet/URLFieldSchema.tbl");
|
||||
deleteThisFile("Program", "Essential Files/PSM.shlb");
|
||||
deleteThisFolder("Program", "psmdata");
|
||||
deleteThisFolder("Program", "res/samples");
|
||||
deleteThisFolder("Program", "res/throbber");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
|
||||
var err = initInstall("Mozilla Seamonkey", "Browser", "$Version$");
|
||||
|
@ -8,6 +23,10 @@ logComment("fProgram: " + fProgram);
|
|||
|
||||
if (verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program",
|
||||
"$Version$",
|
||||
"viewer", // jar source folder
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFile("Components", "mail.xpt");
|
||||
deleteThisFile("Components", "signed.shlb");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
|
||||
var err = initInstall("Mozilla Mail", "Mail", "$Version$");
|
||||
|
@ -8,6 +16,10 @@ logComment("fProgram: " + fProgram);
|
|||
|
||||
if (verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program",
|
||||
"$Version$",
|
||||
"viewer", // jar source folder
|
||||
|
|
|
@ -1,22 +1,11 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
var fComponentReg;
|
||||
var fXpti;
|
||||
|
||||
fComponentReg = getFolder("Program", "Component Registry");
|
||||
logComment("Component Registry file: " + fComponentReg);
|
||||
if(File.exists(fComponentReg))
|
||||
fileDelete(fComponentReg);
|
||||
|
||||
fXpti = getFolder("Components", "xpti.dat");
|
||||
logComment("xpti.dat file: " + fXpti);
|
||||
if(File.exists(fXpti))
|
||||
fileDelete(fXpti);
|
||||
|
||||
fXpti = getFolder("Components", "xptitemp.dat");
|
||||
logComment("xptitemp.dat file: " + fXpti);
|
||||
if(File.exists(fXpti))
|
||||
fileDelete(fXpti);
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFile("Program", "Component Registry");
|
||||
deleteThisFile("Program", "Essential Files/dom.shlb");
|
||||
deleteThisFile("Components", "xpti.dat");
|
||||
deleteThisFile("Components", "xptitemp.dat");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
|
@ -31,6 +20,10 @@ var subFolder = "Mozilla Folder";
|
|||
|
||||
if (verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program",
|
||||
"$Version$",
|
||||
"viewer", // jar source folder
|
||||
|
@ -42,7 +35,6 @@ if (verifyDiskSpace(fProgram, srDest))
|
|||
|
||||
if (err==SUCCESS)
|
||||
{
|
||||
upgradeCleanup();
|
||||
err = performInstall();
|
||||
logComment("performInstall() returned: " + err);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFile("Components", "libmozucth.so");
|
||||
deleteThisFile("Components", "libpsmglue.so");
|
||||
deleteThisFile("Components", "libsample.so");
|
||||
deleteThisFile("Components", "nsSample.js");
|
||||
deleteThisFile("Program", "defaults/wallet/URLFieldSchema.tbl");
|
||||
deleteThisFile("Program", "libcmt.so");
|
||||
deleteThisFile("Program", "libjpeg.so");
|
||||
deleteThisFile("Program", "libprotocol.so");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
|
||||
var err = initInstall("Mozilla Seamonkey", "Seamonkey", "$Version$");
|
||||
|
@ -8,6 +22,10 @@ logComment("communicatorFolder: " + communicatorFolder);
|
|||
|
||||
if (verifyDiskSpace(communicatorFolder, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program",
|
||||
"$Version$",
|
||||
"bin", // jar source folder
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFile("Components", "libsigned.so");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
|
||||
var err = initInstall("Mozilla Mail", "Seamonkey", "$Version$");
|
||||
|
@ -8,6 +15,10 @@ logComment("communicatorFolder: " + communicatorFolder);
|
|||
|
||||
if (verifyDiskSpace(communicatorFolder, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program",
|
||||
"$Version$",
|
||||
"bin", // jar source folder
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFolder("Communicator", "psm");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
var err;
|
||||
|
||||
|
@ -10,6 +17,10 @@ logComment("communicatorFolder: " + communicatorFolder);
|
|||
|
||||
if(verifyDiskSpace(communicatorFolder, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program", // reg entry
|
||||
"$Version$", // version
|
||||
"bin", // jar source
|
||||
|
|
|
@ -1,22 +1,12 @@
|
|||
function upgradeCleanup()
|
||||
{
|
||||
var fComponentReg;
|
||||
var fXpti;
|
||||
|
||||
fComponentReg = getFolder("Program", "component.reg");
|
||||
logComment("component.reg file: " + fComponentReg);
|
||||
if(File.exists(fComponentReg))
|
||||
fileDelete(fComponentReg);
|
||||
|
||||
fXpti = getFolder("Components", "xpti.dat");
|
||||
logComment("xpti.dat file: " + fXpti);
|
||||
if(File.exists(fXpti))
|
||||
fileDelete(fXpti);
|
||||
|
||||
fXpti = getFolder("Components", "xptitemp.dat");
|
||||
logComment("xptitemp.dat file: " + fXpti);
|
||||
if(File.exists(fXpti))
|
||||
fileDelete(fXpti);
|
||||
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
||||
// need to be cleaned up.
|
||||
deleteThisFile("Program", "component.reg");
|
||||
deleteThisFile("Program", "libjsdom.so");
|
||||
deleteThisFile("Program", "libz.so");
|
||||
deleteThisFile("Components", "xpti.dat");
|
||||
deleteThisFile("Components", "xptitemp.dat");
|
||||
}
|
||||
|
||||
var srDest = $SpaceRequired$;
|
||||
|
@ -29,6 +19,10 @@ logComment("communicatorFolder: " + communicatorFolder);
|
|||
|
||||
if (verifyDiskSpace(communicatorFolder, srDest))
|
||||
{
|
||||
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
||||
// delete files that we happen to be also installing. This way, if we do,
|
||||
// it will just get reinstalled. This is for safety measure.
|
||||
upgradeCleanup();
|
||||
err = addDirectory("Program",
|
||||
"$Version$",
|
||||
"bin", // jar source folder
|
||||
|
@ -40,7 +34,6 @@ if (verifyDiskSpace(communicatorFolder, srDest))
|
|||
|
||||
if (err==SUCCESS)
|
||||
{
|
||||
upgradeCleanup();
|
||||
err = performInstall();
|
||||
logComment("performInstall() returned: " + err);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче