From 7f3273acb395c398869e0948150aaa8c30abcd1e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 16 Jun 2022 05:08:11 +0200 Subject: Tighten condition when load_old_config() is called (temporarily disabled) --- bpkg/package-skeleton.cxx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bpkg/package-skeleton.cxx b/bpkg/package-skeleton.cxx index bc7120c..b4cb23c 100644 --- a/bpkg/package-skeleton.cxx +++ b/bpkg/package-skeleton.cxx @@ -338,7 +338,19 @@ namespace bpkg find_if (config_vars_.begin (), config_vars_.end (), [this] (const string& v) { + // For now tighten it even further so that we can continue + // using repositories without package skeleton information + // (bootstrap.build, root.build). See load_old_config() for + // details. + // +#if 1 // @@ TMP return project_override (v, var_prefix_); +#else + size_t vn; + size_t pn (var_prefix_.size ()); + return (project_override (v, var_prefix_, &vn) && + v.compare (pn, vn - pn, ".develop") == 0); +#endif }) == config_vars_.end (); if (src_root) @@ -2019,7 +2031,9 @@ namespace bpkg // variables are not bogus? But they could be untyped... // // Also, build2 warns about unused variables being dropped. - + // + // Note that currently load_old_config() is disabled unless there is + // a config.*.develop variable; see package_skeleton ctor. // Extract and merge old user configuration variables from config.build // (or equivalent) into config_vars. -- cgit v1.1