diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-01 23:01:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-06 15:09:41 +0300 |
commit | 65ba2b47c8d6c83e37fe772a7b54fd6b7480ce17 (patch) | |
tree | f24967df1c447e10c43206cf599007e98c24afb7 /libbrep/package.cxx | |
parent | d1662abccb91be4844efc1508ff8b0427019a27c (diff) |
Add support for test-exclude task manifest valuemigration-example
Note that the last two commits demonstrate an approach to use for migrating
data on the ODB object member type change.
Diffstat (limited to 'libbrep/package.cxx')
-rw-r--r-- | libbrep/package.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libbrep/package.cxx b/libbrep/package.cxx index ec8e74a..2178392 100644 --- a/libbrep/package.cxx +++ b/libbrep/package.cxx @@ -110,12 +110,15 @@ namespace brep examples (move (es)), benchmarks (move (bms)), builds (move (bs)), - build_constraints (!stub () ? move (bc) : build_constraints_type ()), + build_constraints (move (bc)), internal_repository (move (rp)), location (move (lc)), fragment (move (fr)), sha256sum (move (sh)), - buildable (!stub () && internal_repository->buildable) + buildable ( + stub () ? buildable_status::stub : + !internal_repository->buildable ? buildable_status::unbuildable : + buildable_status::buildable) { assert (internal_repository->internal); } @@ -123,12 +126,18 @@ namespace brep package:: package (package_name nm, version_type vr, + build_class_exprs bs, + build_constraints_type bc, shared_ptr<repository_type> rp) : id (rp->tenant, move (nm), vr), tenant (id.tenant), name (id.name), version (move (vr)), - buildable (false) + builds (move (bs)), + build_constraints (move (bc)), + buildable (stub () + ? buildable_status::stub + : buildable_status::external) { assert (!rp->internal); other_repositories.emplace_back (move (rp)); |