Skip to content

Commit e6442b0

Browse files
Łukasz Mendakiewiczras0219-msft
authored andcommitted
get_versions should return all versions so the best match can be found (#4945)
* get_versions should return all versions so the best match can be found * [vcpkg] Consider more than one path when searching for system binaries
1 parent e65faea commit e6442b0

2 files changed

Lines changed: 226 additions & 263 deletions

File tree

src/vcpkg/archives.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ namespace vcpkg::Archives
88
void extract_archive(const VcpkgPaths& paths, const fs::path& archive, const fs::path& to_path)
99
{
1010
Files::Filesystem& fs = paths.get_filesystem();
11-
const fs::path to_path_partial = to_path.u8string() + ".partial";
11+
const fs::path to_path_partial = to_path.u8string() + ".partial"
12+
#if defined(_WIN32)
13+
+ "." + std::to_string(GetCurrentProcessId())
14+
#endif
15+
;
1216

1317
std::error_code ec;
1418
fs.remove_all(to_path, ec);

0 commit comments

Comments
 (0)