From 05f3943825404dc80ce7d9a061ac15a98907feaa Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 30 Jan 2023 13:26:09 +0300 Subject: Add upstream_version and project members to available_package type --- bpkg/package.hxx | 10 ++++++++-- bpkg/package.xml | 7 +++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 44c3fee..e811e62 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -27,7 +27,7 @@ // #define DB_SCHEMA_VERSION_BASE 12 -#pragma db model version(DB_SCHEMA_VERSION_BASE, 21, closed) +#pragma db model version(DB_SCHEMA_VERSION_BASE, 22, closed) namespace bpkg { @@ -679,9 +679,13 @@ namespace bpkg { public: using version_type = bpkg::version; + using upstream_version_type = bpkg::upstream_version; available_package_id id; - upstream_version version; + upstream_version_type version; + + optional upstream_version; + optional project; // List of repository fragments to which this package version belongs // (yes, in our world, it can be in multiple, unrelated repositories) @@ -738,6 +742,8 @@ namespace bpkg available_package (package_manifest&& m) : id (move (m.name), m.version), version (move (m.version)), + upstream_version (move (m.upstream_version)), + project (move (m.project)), dependencies (convert (move (m.dependencies))), tests (move (m.tests)), distribution_values (move (m.distribution_values)), diff --git a/bpkg/package.xml b/bpkg/package.xml index baa8dfb..a8558fd 100644 --- a/bpkg/package.xml +++ b/bpkg/package.xml @@ -1,4 +1,11 @@ + + + + + + + -- cgit v1.1