diff options
| author | ras0219 <533828+ras0219@users.noreply.github.com> | 2020-12-01 13:18:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 13:18:42 -0800 |
| commit | f92bf6ee1ec327799c0b1b5efac2365fb7004237 (patch) | |
| tree | 421f34e7f0f23e8638eaaa0d1f7c6cf1796df233 /toolsrc/include | |
| parent | f8baf4862946195b6efa7fc9959cd4b7fe026f8e (diff) | |
| download | vcpkg-f92bf6ee1ec327799c0b1b5efac2365fb7004237.tar.gz vcpkg-f92bf6ee1ec327799c0b1b5efac2365fb7004237.zip | |
[vcpkg] Output versions during install plans (#14882)
* [vcpkg] Output versions during install plans
* [vcpkg] Display versions for already-installed packages
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/sourceparagraph.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/sourceparagraph.h b/toolsrc/include/vcpkg/sourceparagraph.h index 2152e0237..ee07826bb 100644 --- a/toolsrc/include/vcpkg/sourceparagraph.h +++ b/toolsrc/include/vcpkg/sourceparagraph.h @@ -74,6 +74,8 @@ namespace vcpkg Json::Object extra_info; + VersionT to_versiont() const { return VersionT{version, port_version}; } + friend bool operator==(const SourceParagraph& lhs, const SourceParagraph& rhs); friend bool operator!=(const SourceParagraph& lhs, const SourceParagraph& rhs) { return !(lhs == rhs); } }; @@ -104,6 +106,8 @@ namespace vcpkg Optional<std::string> check_against_feature_flags(const fs::path& origin, const FeatureFlagSettings& flags) const; + VersionT to_versiont() const { return core_paragraph->to_versiont(); } + friend bool operator==(const SourceControlFile& lhs, const SourceControlFile& rhs); friend bool operator!=(const SourceControlFile& lhs, const SourceControlFile& rhs) { return !(lhs == rhs); } }; @@ -132,6 +136,8 @@ namespace vcpkg return {std::make_unique<SourceControlFile>(source_control_file->clone()), source_location}; } + VersionT to_versiont() const { return source_control_file->to_versiont(); } + std::unique_ptr<SourceControlFile> source_control_file; fs::path source_location; }; |
