mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 05:52:04 +08:00
Don't ignore fs.rename() errors
This commit is contained in:
parent
ee75dd08d3
commit
d11014e2ae
@ -222,7 +222,7 @@ namespace vcpkg::Commands::Fetch
|
|||||||
Checks::exit_with_message(VCPKG_LINE_INFO, "Unexpected archive extension: %s", ext.u8string());
|
Checks::exit_with_message(VCPKG_LINE_INFO, "Unexpected archive extension: %s", ext.u8string());
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.rename(to_path_partial, to_path, ec);
|
fs.rename(to_path_partial, to_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void download_file(const VcpkgPaths& paths,
|
static void download_file(const VcpkgPaths& paths,
|
||||||
@ -256,7 +256,7 @@ namespace vcpkg::Commands::Fetch
|
|||||||
sha512,
|
sha512,
|
||||||
actual_hash);
|
actual_hash);
|
||||||
|
|
||||||
fs.rename(download_path_part, download_path, ec);
|
fs.rename(download_path_part, download_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
static fs::path fetch_tool(const VcpkgPaths& paths, const std::string& tool_name, const ToolData& tool_data)
|
static fs::path fetch_tool(const VcpkgPaths& paths, const std::string& tool_name, const ToolData& tool_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user