aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/package-skeleton.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/package-skeleton.cxx b/bpkg/package-skeleton.cxx
index 8e71a53..d92f513 100644
--- a/bpkg/package-skeleton.cxx
+++ b/bpkg/package-skeleton.cxx
@@ -338,8 +338,6 @@ namespace bpkg
// construction (in evaluate_{prefer_accept,require}()): we do not add
// as dependent variables that have the override origin.
//
- package_configuration old (move (cfg)); cfg.package = move (old.package);
-
scope& rs (
*bootstrap (
*this, merge_cmd_vars (dependent_cmd_vars (cfg)))->second.front ());
@@ -348,6 +346,9 @@ namespace bpkg
//
load_root (rs);
+ package_configuration old (move (cfg));
+ cfg.package = move (old.package);
+
// Note that a configuration variable may not have a default value so we
// cannot just iterate over all the config.<name>** values set on the
// root scope. Our options seem to be either iterating over the variable