aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-29 18:14:48 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 18:01:13 -0700
commit8e30d0b420ea4883a27b514940ca54778f4f21aa (patch)
tree9b97b6e0df5a11bf648bb1427b454754bb6b138a /toolsrc/include
parentaf0e652c484b9554bdce2457a73928682f505c24 (diff)
downloadvcpkg-8e30d0b420ea4883a27b514940ca54778f4f21aa.tar.gz
vcpkg-8e30d0b420ea4883a27b514940ca54778f4f21aa.zip
`update` needs to use package_spec
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Commands.h10
-rw-r--r--toolsrc/include/version_t.h11
2 files changed, 10 insertions, 11 deletions
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 <array>
+#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<outdated_package> 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;
- };
}