aboutsummaryrefslogtreecommitdiff
path: root/load
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-05 13:08:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-05 13:08:13 +0200
commitd8b321a3e033a93ad68a84994e5653e47b1b2d57 (patch)
tree7068f1e9e8bfc0a092f8c7fbc1c3e13ba6f83352 /load
parentb92f4f08e0076296965c1cc2fb680731012ca970 (diff)
Ignore special build2 and bpkg dependencies in loader
Diffstat (limited to 'load')
-rw-r--r--load/load.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/load/load.cxx b/load/load.cxx
index 79b0ace..26d4e20 100644
--- a/load/load.cxx
+++ b/load/load.cxx
@@ -383,6 +383,17 @@ load_packages (const shared_ptr<repository>& rp, database& db)
for (auto& pda: pm.dependencies)
{
+ // Ignore special build2 and bpkg dependencies. We may not have
+ // packages for them and also showing them for every package is
+ // probably not very helpful.
+ //
+ if (pda.buildtime && !pda.empty ())
+ {
+ const string& n (pda.front ().name);
+ if (n == "build2" || n == "bpkg")
+ continue;
+ }
+
ds.emplace_back (pda.conditional, pda.buildtime, move (pda.comment));
for (auto& pd: pda)