From 8e30d0b420ea4883a27b514940ca54778f4f21aa Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 29 Mar 2017 18:14:48 -0700 Subject: `update` needs to use package_spec --- toolsrc/include/vcpkg_Commands.h | 10 ++++++++++ toolsrc/include/version_t.h | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg_Commands.h b/toolsrc/include/vcpkg_Commands.h index 544dffe72..d73181bf4 100644 --- a/toolsrc/include/vcpkg_Commands.h +++ b/toolsrc/include/vcpkg_Commands.h @@ -4,6 +4,7 @@ #include "vcpkg_paths.h" #include "StatusParagraphs.h" #include +#include "version_t.h" namespace vcpkg::Commands { @@ -56,6 +57,15 @@ namespace vcpkg::Commands namespace Update { + struct outdated_package + { + static bool compare_by_name(const outdated_package& left, const outdated_package& right); + + package_spec spec; + version_diff_t version_diff; + }; + + std::vector find_outdated_packages(const vcpkg_paths& paths, const StatusParagraphs& status_db); void perform_and_exit(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths); } diff --git a/toolsrc/include/version_t.h b/toolsrc/include/version_t.h index 47e5aec4b..9a4e11a39 100644 --- a/toolsrc/include/version_t.h +++ b/toolsrc/include/version_t.h @@ -25,15 +25,4 @@ namespace vcpkg std::string toString() const; }; - - struct name_and_version_diff_t - { - static bool compare_by_name(const name_and_version_diff_t& left, const name_and_version_diff_t& right) - { - return left.name < right.name; - } - - std::string name; - version_diff_t version_diff; - }; } -- cgit v1.2.3