Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix updater not always cleaning up temp directory #9247

Merged

Conversation

Dentomologist
Copy link
Contributor

Updater was only deleting TempUpdate folder when an error occured.

Updater was only deleting TempUpdate folder when an error occured.
@leoetlino
Copy link
Member

Fwiw, the bug wasn't present in the initial implementation (07c1603):

  bool ok = PerformUpdate(todo, opts.install_base_path, opts.content_store_url, temp_dir);
  if (!ok)
    fprintf(log_fp, "Failed to apply the update.\n");

  CleanUpTempDir(temp_dir, todo);
  return !ok;
}

@leoetlino leoetlino merged commit 5921a93 into dolphin-emu:master Nov 20, 2020
10 checks passed
@ghost
Copy link

ghost commented Nov 20, 2020

Thanks for the fix! It was getting annoying having to delete that manually from the macOS Application folder. Any chance that the updater log could be changed to be saved with the rest of the logs instead of off by itself?

@Dentomologist
Copy link
Contributor Author

Thanks for the fix! It was getting annoying having to delete that manually from the macOS Application folder. Any chance that the updater log could be changed to be saved with the rest of the logs instead of off by itself?

As it happens, I'm working on a separate PR that will include that.

@Dentomologist Dentomologist deleted the fix-updater-temporary-folder branch December 9, 2020 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants