aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package-skeleton.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-10 12:21:22 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2022-02-10 13:46:33 +0300
commitb978ab110d5dd11b4efecb14830c849f89210919 (patch)
treed427b72857acea99de393234a232605095150f4c /bpkg/package-skeleton.hxx
parent0aa8059f9b9377c7b39e4ceb2df85a4e7b6fec0f (diff)
Minor tweaks to package skeleton implementation
Diffstat (limited to 'bpkg/package-skeleton.hxx')
-rw-r--r--bpkg/package-skeleton.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/bpkg/package-skeleton.hxx b/bpkg/package-skeleton.hxx
index 00be6a3..b26c7b9 100644
--- a/bpkg/package-skeleton.hxx
+++ b/bpkg/package-skeleton.hxx
@@ -22,10 +22,11 @@ namespace bpkg
// If the package is external and will not be disfigured, then the
// existing package source root directory needs to be specified. In this
// case this source directory and the automatically deduced potentially
- // non-existing out root directory will be used for build2 state loading
+ // non-existent out root directory will be used for build2 state loading
// instead of the newly created skeleton directory. This, in particular,
- // allows to consider existing configuration variables while evaluating
- // the dependency clauses.
+ // makes sure we take into account the existing configuration variables
+ // while evaluating the dependency clauses (this logic is "parallel" to
+ // the configuration preservation in pkg-build.cxx).
//
// Note that the database and available_package are expected to outlive
// this object.
@@ -125,8 +126,8 @@ namespace bpkg
reference_wrapper<const available_package> available_;
strings config_vars_;
- optional<dir_path> src_root_;
- optional<dir_path> out_root_;
+ dir_path src_root_;
+ dir_path out_root_; // If empty, the same as src_root_.
unique_ptr<build2::context> ctx_;
bool created_ = false;