diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-30 12:59:10 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-30 21:52:43 -0800 |
| commit | 82005ffe7474b5432bb043e3b4859bdd68ea6030 (patch) | |
| tree | 3920c91a0a707260b3322047e03ddc394c665072 /toolsrc/src | |
| parent | b1f0a09af250296d7483aa28e3a014d2635600b5 (diff) | |
| download | vcpkg-82005ffe7474b5432bb043e3b4859bdd68ea6030.tar.gz vcpkg-82005ffe7474b5432bb043e3b4859bdd68ea6030.zip | |
Improve messages from the `remove` command
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/commands_remove.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toolsrc/src/commands_remove.cpp b/toolsrc/src/commands_remove.cpp index 9a0b6950e..85154d356 100644 --- a/toolsrc/src/commands_remove.cpp +++ b/toolsrc/src/commands_remove.cpp @@ -97,7 +97,6 @@ namespace vcpkg::Commands::Remove pkg.state = install_state_t::not_installed; write_update(paths, pkg); - System::println(System::color::success, "Package %s was successfully removed", pkg.package.displayname()); } static void sort_packages_by_name(std::vector<const package_spec_with_remove_plan*>* packages) @@ -197,12 +196,17 @@ namespace vcpkg::Commands::Remove } else if (action.plan.type == remove_plan_type::REMOVE_AUTO_SELECTED || action.plan.type == remove_plan_type::REMOVE_USER_REQUESTED) { + const std::string display_name = action.spec.display_name(); + System::println("Removing package %s... ", display_name); remove_package(paths, *action.plan.status_pgh); + System::println(System::color::success, "Removing package %s... done", display_name); if (alsoRemoveFolderFromPackages) { const fs::path spec_package_dir = paths.packages / action.spec.dir(); + System::println("Purging package %s... ", display_name); delete_directory(spec_package_dir); + System::println(System::color::success, "Purging package %s... done", display_name); } } else |
