aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-17 12:17:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-17 12:17:44 +0200
commitac1db69ebea3f978e73503b57959125fd910f525 (patch)
treef227d974157aeebed553b3036a0b91145e4cd942
parentda89007801070651f592575f73dd4130dc324998 (diff)
Set build.mode=skeleton during package skeleton load
-rw-r--r--bpkg/package-skeleton.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/bpkg/package-skeleton.cxx b/bpkg/package-skeleton.cxx
index cd79222..9cffef1 100644
--- a/bpkg/package-skeleton.cxx
+++ b/bpkg/package-skeleton.cxx
@@ -762,7 +762,9 @@ namespace bpkg
gs.assign (ctx.var_build_meta_operation) = ctx.current_mname;
- // @@ TODO: need to set a variable indicating this is a skeleton load.
+ // Use the build mode to signal this is a package skeleton load.
+ //
+ gs.assign (*ctx.var_pool.find ("build.mode")) = "skeleton";
// Note that it's ok for out_root to not exist (external package).
//