diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-07-08 21:27:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-07-09 14:03:46 +0300 |
commit | c28758a9327efc0f3bfc2f3c14d12b533750d94b (patch) | |
tree | 6d40474dddd28973a2dc8899fe18c2cb4ea6ff40 /libbrep/package.cxx | |
parent | 4dcc80df759c7ba1ada65b52a8dc6c793d56e4e5 (diff) |
Add support for marking internal repository as non-buildable
Diffstat (limited to 'libbrep/package.cxx')
-rw-r--r-- | libbrep/package.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libbrep/package.cxx b/libbrep/package.cxx index 6c6a565..b17dcc1 100644 --- a/libbrep/package.cxx +++ b/libbrep/package.cxx @@ -105,13 +105,12 @@ namespace brep dependencies (move (dp)), requirements (move (rq)), builds (move (bs)), - build_constraints (version.compare (wildcard_version, true) != 0 - ? move (bc) - : build_constraints_type ()), + build_constraints (!stub () ? move (bc) : build_constraints_type ()), internal_repository (move (rp)), location (move (lc)), fragment (move (fr)), - sha256sum (move (sh)) + sha256sum (move (sh)), + buildable (!stub () && internal_repository->buildable) { assert (internal_repository->internal); } @@ -123,7 +122,8 @@ namespace brep : id (rp->tenant, move (nm), vr), tenant (id.tenant), name (id.name), - version (move (vr)) + version (move (vr)), + buildable (false) { assert (!rp->internal); other_repositories.emplace_back (move (rp)); @@ -192,6 +192,7 @@ namespace brep string d, repository_location h, optional<certificate_type> c, + bool b, uint16_t r) : id (move (t), l.canonical_name ()), tenant (id.tenant), @@ -201,7 +202,8 @@ namespace brep priority (r), cache_location (move (h)), certificate (move (c)), - internal (true) + internal (true), + buildable (b) { } @@ -212,7 +214,8 @@ namespace brep canonical_name (id.canonical_name), location (move (l)), priority (0), - internal (false) + internal (false), + buildable (false) { } } |