File tree 2 files changed +8
-3
lines changed
toolkit/mozapps/update/updater
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 81
81
82
82
# Mac OS X v2 signing removals
83
83
#ifdef XP_MACOSX
84
- precomplete
85
84
@DIR_MACOS@active-update.xml
86
85
@DIR_MACOS@update-settings.ini
87
86
@DIR_MACOS@updates.xml
Original file line number Diff line number Diff line change @@ -3014,10 +3014,16 @@ int NS_main(int argc, NS_tchar **argv)
3014
3014
#endif
3015
3015
3016
3016
#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
3018
3019
// Contents/MacOS to Contents/Resources and if both exist delete the
3019
3020
// 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
+
3021
3027
NS_tchar oldDistDir[MAXPATHLEN];
3022
3028
NS_tsnprintf (oldDistDir, sizeof (oldDistDir)/sizeof(oldDistDir[0 ]),
3023
3029
NS_T(" %s/Contents/MacOS/distribution" ), gInstallDirPath);
You can’t perform that action at this time.
0 commit comments