[vcpkg] Fix issue with any command executing more than 10 transactions with mixed types. Fixes #2600. Fixes #2582.

This commit is contained in:
Robert Schumacher 2018-01-24 14:20:24 -08:00
parent 7d9f0a8697
commit 9eda2e04d1
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ namespace vcpkg
const auto my_update_id = update_id++;
const auto tmp_update_filename = paths.vcpkg_dir_updates / "incomplete";
const auto update_filename = paths.vcpkg_dir_updates / std::to_string(my_update_id);
const auto update_filename = paths.vcpkg_dir_updates / Strings::format("%010d", my_update_id);
fs.write_contents(tmp_update_filename, Strings::serialize(p));
fs.rename(tmp_update_filename, update_filename);