From 4f6abb0576e810b37d56ad3cafc67fac84682ec2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Mar 2018 15:24:48 +0200 Subject: Implement status command --- bdep/project.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'bdep/project.cxx') diff --git a/bdep/project.cxx b/bdep/project.cxx index e09371e..64f82ca 100644 --- a/bdep/project.cxx +++ b/bdep/project.cxx @@ -326,4 +326,26 @@ namespace bdep return r; } + + void + verify_project_packages (const project_packages& pp, + const configurations& cfgs) + { + for (const shared_ptr& c: cfgs) + { + for (const package_location& p: pp.packages) + { + if (find_if (c->packages.begin (), + c->packages.end (), + [&p] (const package_state& s) + { + return p.name == s.name; + }) == c->packages.end ()) + { + fail << "package " << p.name << " is not initialized " + << "in configuration " << *c; + } + } + } + } } -- cgit v1.1