diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-05-02 14:20:14 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-05-02 14:20:14 -0700 |
| commit | 3b26b6314f8acb4f569163f5cedf17590557a386 (patch) | |
| tree | c24f30e867c69aee30eb2f7c055103ce65f09b20 /toolsrc/src/commands_remove.cpp | |
| parent | b58deb23cc3324d143b7328fb74bf1096da2e430 (diff) | |
| download | vcpkg-3b26b6314f8acb4f569163f5cedf17590557a386.tar.gz vcpkg-3b26b6314f8acb4f569163f5cedf17590557a386.zip | |
Improve message if there are no --oudated packages
Resolves #1008
Diffstat (limited to 'toolsrc/src/commands_remove.cpp')
| -rw-r--r-- | toolsrc/src/commands_remove.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolsrc/src/commands_remove.cpp b/toolsrc/src/commands_remove.cpp index 3675f74ea..e2b5d12a1 100644 --- a/toolsrc/src/commands_remove.cpp +++ b/toolsrc/src/commands_remove.cpp @@ -137,6 +137,12 @@ namespace vcpkg::Commands::Remove args.check_exact_arg_count(0, example); specs = Util::fmap(Update::find_outdated_packages(paths, status_db), [](auto&& outdated) { return outdated.spec; }); + + if (specs.empty()) + { + System::println(System::Color::success, "There are no oudated packages."); + Checks::exit_success(VCPKG_LINE_INFO); + } } else { @@ -144,6 +150,7 @@ namespace vcpkg::Commands::Remove specs = Util::fmap(args.command_arguments, [&](auto&& arg) { return Input::check_and_get_package_spec(arg, default_triplet, example); }); + for (auto&& spec : specs) Input::check_triplet(spec.triplet(), paths); } |
