aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_install.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-15 19:19:19 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-15 19:19:19 -0800
commit293fcbec59a147f182a2d7b46a67797dcbf4a258 (patch)
tree1f7fa05e155987e67e3e085f1121f4b938105640 /toolsrc/src/commands_install.cpp
parentad197b4a742920e42eb7a1a649c07de417a517ad (diff)
downloadvcpkg-293fcbec59a147f182a2d7b46a67797dcbf4a258.tar.gz
vcpkg-293fcbec59a147f182a2d7b46a67797dcbf4a258.zip
[!] Change the format of the listfile
Diffstat (limited to 'toolsrc/src/commands_install.cpp')
-rw-r--r--toolsrc/src/commands_install.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp
index d4ec64e09..9757e171d 100644
--- a/toolsrc/src/commands_install.cpp
+++ b/toolsrc/src/commands_install.cpp
@@ -24,7 +24,7 @@ namespace vcpkg::Commands::Install
const std::string& target_triplet_as_string = target_triplet.canonical_name();
std::error_code ec;
fs::create_directory(paths.installed / target_triplet_as_string, ec);
- output.push_back(Strings::format(R"(%s)", target_triplet_as_string));
+ output.push_back(Strings::format(R"(%s/)", target_triplet_as_string));
for (auto it = fs::recursive_directory_iterator(package_prefix_path); it != fs::recursive_directory_iterator(); ++it)
{
@@ -54,7 +54,7 @@ namespace vcpkg::Commands::Install
}
// Trailing backslash for directories
- output.push_back(Strings::format(R"(%s/%s)", target_triplet_as_string, suffix));
+ output.push_back(Strings::format(R"(%s/%s/)", target_triplet_as_string, suffix));
continue;
}
@@ -82,6 +82,8 @@ namespace vcpkg::Commands::Install
System::println(System::color::error, "failed: %s: cannot handle file type", it->path().u8string());
}
+ std::sort(output.begin(), output.end());
+
Files::write_all_lines(paths.listfile_path(bpgh), output);
}