Skip to content

Commit e6dcf41

Browse files
author
Robert Strong
committed
Mac v2 signing - Bug 1071465 - old precomplete file is not removed on update. r=spohl
1 parent ad8df89 commit e6dcf41

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

browser/installer/removed-files.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181

8282
# Mac OS X v2 signing removals
8383
#ifdef XP_MACOSX
84-
precomplete
8584
@DIR_MACOS@active-update.xml
8685
@DIR_MACOS@update-settings.ini
8786
@DIR_MACOS@updates.xml

toolkit/mozapps/update/updater/updater.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3014,10 +3014,16 @@ int NS_main(int argc, NS_tchar **argv)
30143014
#endif
30153015

30163016
#ifdef XP_MACOSX
3017-
// When the update is successful move the distribution directory from
3017+
// When the update is successful remove the precomplete file in the root of
3018+
// the application bundle and move the distribution directory from
30183019
// Contents/MacOS to Contents/Resources and if both exist delete the
30193020
// directory under Contents/MacOS (see Bug 1068439).
3020-
if (gSucceeded) {
3021+
if (gSucceeded && !sStagedUpdate) {
3022+
NS_tchar oldPrecomplete[MAXPATHLEN];
3023+
NS_tsnprintf(oldPrecomplete, sizeof(oldPrecomplete)/sizeof(oldPrecomplete[0]),
3024+
NS_T("%s/precomplete"), gInstallDirPath);
3025+
NS_tremove(oldPrecomplete);
3026+
30213027
NS_tchar oldDistDir[MAXPATHLEN];
30223028
NS_tsnprintf(oldDistDir, sizeof(oldDistDir)/sizeof(oldDistDir[0]),
30233029
NS_T("%s/Contents/MacOS/distribution"), gInstallDirPath);

0 commit comments

Comments
 (0)