Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9858 from OatmealDome/updater-fail
UpdaterCommon: Fix code signing error after updating on macOS
  • Loading branch information
leoetlino committed Jul 6, 2021
2 parents 27c560f + dd5e0c6 commit 683807a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/UpdaterCommon/UpdaterCommon.cpp
Expand Up @@ -431,7 +431,7 @@ bool UpdateFiles(const std::vector<TodoList::UpdateOp>& to_update,
std::string content_filename = HexEncode(op.new_hash.data(), op.new_hash.size());
fprintf(log_fp, "Updating file %s from content %s...\n", op.filename.c_str(),
content_filename.c_str());
if (!File::Copy(temp_path + DIR_SEP + content_filename, path))
if (!File::Rename(temp_path + DIR_SEP + content_filename, path))
{
fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str());
return false;
Expand Down

0 comments on commit 683807a

Please sign in to comment.