diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-26 11:40:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-26 11:40:35 +0200 |
commit | 5b84b34eb1c4c49607a0d14706b15a6923f1ab0c (patch) | |
tree | a17fc8d975695fee597d71053ad4cb230a54be33 /bdep/build.txx | |
parent | 17341bc0fdd23617e3f2e81b0228ff9ecc5cb194 (diff) |
Print diagnostics about empty configurations after "in configuration ...:"
In particular, this makes sure they are separated with blank lines.
Diffstat (limited to 'bdep/build.txx')
-rw-r--r-- | bdep/build.txx | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/bdep/build.txx b/bdep/build.txx index 7d17088..c546559 100644 --- a/bdep/build.txx +++ b/bdep/build.txx @@ -94,35 +94,34 @@ namespace bdep ps.push_back (s.name.string ().c_str ()); } + // If we are printing multiple configurations, separate them with a + // blank line and print the configuration name/directory. + // + if (verb && cfgs.size () > 1) + { + text << (first ? "" : "\n") + << "in configuration " << *c << ':'; + + first = false; + } + if (ps.empty ()) { if (verb) { diag_record dr (info); - dr << "skipping configuration " << *c; - if (c->packages.empty ()) - dr << info << "configuration is empty"; + dr << "no packages "; else - dr << info << "none of specified packages initialized in this " - << "configuration"; + dr << "none of specified packages "; + + dr << "initialized in configuration " << *c << ", skipping"; } continue; } - // If we are printing multiple configurations, separate them with a - // blank line and print the configuration name/directory. - // - if (verb && cfgs.size () > 1) - { - text << (first ? "" : "\n") - << "in configuration " << *c << ':'; - - first = false; - } - // Pre-sync the configuration to avoid triggering the build system hook // (see sync for details). // |