diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-15 15:24:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-15 15:24:48 +0200 |
commit | 4f6abb0576e810b37d56ad3cafc67fac84682ec2 (patch) | |
tree | a8dbf336cea736b99a7ece1cb1e32b985e9f7934 /bdep/sync.cxx | |
parent | b44b4088f48a27bff88f8f010b8cd42303cbdad0 (diff) |
Implement status command
Diffstat (limited to 'bdep/sync.cxx')
-rw-r--r-- | bdep/sync.cxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx index dff6489..6f95080 100644 --- a/bdep/sync.cxx +++ b/bdep/sync.cxx @@ -90,22 +90,8 @@ namespace bdep // If specified, verify packages are present in each configuration. // - for (const shared_ptr<configuration>& 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; - } - } - } + if (!pp.packages.empty ()) + verify_project_packages (pp, cfgs); // Synchronize each configuration skipping empty ones. // |