aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/sourceparagraph.h6
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;
};