From 9f5b820aec37ac0a929e074ae2c859229da33b0f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 28 Apr 2023 22:14:14 +0300 Subject: Add support for upload handlers and implement brep-upload-bindist handler --- libbrep/build-extra.sql | 1 + libbrep/build-package.hxx | 2 ++ libbrep/build.hxx | 2 +- libbrep/build.xml | 2 ++ libbrep/package.hxx | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-) (limited to 'libbrep') diff --git a/libbrep/build-extra.sql b/libbrep/build-extra.sql index 7331ab1..b1bd04f 100644 --- a/libbrep/build-extra.sql +++ b/libbrep/build-extra.sql @@ -60,6 +60,7 @@ CREATE FOREIGN TABLE build_package ( version_revision INTEGER NOT NULL, version_upstream TEXT NOT NULL, version_release TEXT NULL, + project CITEXT NOT NULL, internal_repository_tenant TEXT NULL, internal_repository_canonical_name TEXT NULL, buildable BOOLEAN NOT NULL) diff --git a/libbrep/build-package.hxx b/libbrep/build-package.hxx index 6ca8702..e9104e0 100644 --- a/libbrep/build-package.hxx +++ b/libbrep/build-package.hxx @@ -111,6 +111,8 @@ namespace brep package_id id; upstream_version version; + package_name project; + // Mapped to the package object requirements and tests members using the // PostgreSQL foreign table mechanism. // diff --git a/libbrep/build.hxx b/libbrep/build.hxx index eaceebc..717029d 100644 --- a/libbrep/build.hxx +++ b/libbrep/build.hxx @@ -28,7 +28,7 @@ // #define LIBBREP_BUILD_SCHEMA_VERSION_BASE 20 -#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 20, closed) +#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 21, closed) // We have to keep these mappings at the global scope instead of inside the // brep namespace because they need to be also effective in the bbot namespace diff --git a/libbrep/build.xml b/libbrep/build.xml index d1969f1..0374b05 100644 --- a/libbrep/build.xml +++ b/libbrep/build.xml @@ -1,4 +1,6 @@ + + diff --git a/libbrep/package.hxx b/libbrep/package.hxx index cf6ae64..bba38b7 100644 --- a/libbrep/package.hxx +++ b/libbrep/package.hxx @@ -494,7 +494,7 @@ namespace brep // Matches the package name if the project name is not specified in // the manifest. // - package_name project; + package_name project; // Note: foreign-mapped in build. priority_type priority; string summary; -- cgit v1.1