From 7e4c92e29954c14f9c1dd51aff95fff25d3ced32 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 May 2019 14:15:44 +0300 Subject: Add support for package manifest upstream-version value --- libbrep/package.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libbrep/package.hxx') diff --git a/libbrep/package.hxx b/libbrep/package.hxx index 2e31ff4..f59c0d8 100644 --- a/libbrep/package.hxx +++ b/libbrep/package.hxx @@ -21,7 +21,7 @@ // #define LIBBREP_PACKAGE_SCHEMA_VERSION_BASE 11 -#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 12, closed) +#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 13, closed) namespace brep { @@ -344,6 +344,7 @@ namespace brep public: using repository_type = brep::repository; using version_type = brep::version; + using upstream_version_type = brep::upstream_version; using priority_type = brep::priority; using license_alternatives_type = brep::license_alternatives; using url_type = brep::url; @@ -357,6 +358,7 @@ namespace brep // package (package_name, version_type, + optional upstream_version, package_name project, priority_type, string summary, @@ -399,9 +401,11 @@ namespace brep // package_id id; - const string& tenant; // Tracks id.tenant. - const package_name& name; // Tracks id.name. - upstream_version version; + const string& tenant; // Tracks id.tenant. + const package_name& name; // Tracks id.name. + upstream_version_type version; + + optional upstream_version; // Matches the package name if the project name is not specified in // the manifest. -- cgit v1.1