diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-05-19 14:24:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-06-07 21:14:14 +0300 |
commit | 141dd9fe0f04fab25c8bda8d831c818b62a6dbb0 (patch) | |
tree | dc273475fbd7466b8ac1f4740782ebebd6c895e9 /bpkg/pkg-build.cxx | |
parent | 5754ef6aca5ccab95476a159a1da7b41effdd03d (diff) |
Pass config variables sources to skeleton constructor
Diffstat (limited to 'bpkg/pkg-build.cxx')
-rw-r--r-- | bpkg/pkg-build.cxx | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index 1d814b7..4d04f7a 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -2790,6 +2790,9 @@ namespace bpkg pdb, *ap, pkg.config_vars, + (sp != nullptr && !pkg.disfigure + ? &sp->config_variables + : nullptr), move (src_root), move (out_root)); } @@ -5077,12 +5080,14 @@ namespace bpkg const shared_ptr<available_package>& ap (b->available); - b->skeleton = package_skeleton (o, - b->db, - *ap, - b->config_vars, - move (src_root), - move (out_root)); + b->skeleton = + package_skeleton (o, + b->db, + *ap, + b->config_vars, + nullptr /* config_srcs */, // @@ TMP + move (src_root), + move (out_root)); const auto& pos (ed.dependency_position); @@ -11413,6 +11418,9 @@ namespace bpkg pdb, *ap, move (p.config_vars), + (!p.disfigure + ? &sp->config_variables + : nullptr), move (src_root), move (out_root)), prereqs (), @@ -11427,9 +11435,8 @@ namespace bpkg // assert (sp->state == package_state::unpacked); - // Note that we don't use find_available*() here since we don't care - // about the repository fragment the package comes from and only need - // its manifest information. + // Note that here we don't care about the repository fragment the + // package comes from and only need its manifest information. // shared_ptr<available_package> dap (find_available (o, pdb, sp)); @@ -11455,6 +11462,9 @@ namespace bpkg pdb, *dap, move (p.config_vars), + (!p.disfigure + ? &sp->config_variables + : nullptr), move (src_root), move (out_root)), prereqs (), |