mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Mac v2 signing - Bug 1075169
- Copy staged update when renaming fails and fix crash on staging failure. r=spohl, a=RyanVM over irc
This commit is contained in:
parent
c3dfb064c8
commit
9a3ec598b5
@ -1991,6 +1991,14 @@ ProcessReplaceRequest()
|
||||
LOG(("Begin moving newDir (" LOG_S ") to destDir (" LOG_S ")",
|
||||
newDir, destDir));
|
||||
rv = rename_file(newDir, destDir, true);
|
||||
#ifdef XP_MACOSX
|
||||
if (rv) {
|
||||
LOG(("Moving failed. Begin copying newDir (" LOG_S ") to destDir (" LOG_S ")",
|
||||
newDir, destDir));
|
||||
copy_recursive_skiplist<0> skiplist;
|
||||
rv = ensure_copy_recursive(newDir, destDir, skiplist);
|
||||
}
|
||||
#endif
|
||||
if (rv) {
|
||||
LOG(("Moving newDir to destDir failed, err: %d", rv));
|
||||
LOG(("Now, try to move tmpDir back to destDir"));
|
||||
@ -2177,8 +2185,7 @@ UpdateThreadFunc(void *param)
|
||||
// staged directory as it won't be useful any more.
|
||||
ensure_remove_recursive(gWorkingDirPath);
|
||||
WriteStatusFile(sUsingService ? "pending-service" : "pending");
|
||||
char processUpdates[] = "MOZ_PROCESS_UPDATES=";
|
||||
putenv(processUpdates); // We need to use -process-updates again in the tests
|
||||
putenv(const_cast<char*>("MOZ_PROCESS_UPDATES=")); // We need to use -process-updates again in the tests
|
||||
reportRealResults = false; // pretend success
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user