aboutsummaryrefslogtreecommitdiff
path: root/bdep/ci.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-12 20:10:55 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-13 01:00:56 +0300
commit7d237c9a5d55d7ad5f1c81664eb059294a034f69 (patch)
tree5bed5c3b24515eaebdad6819b40534eec7c31de7 /bdep/ci.cxx
parent5755ec31eb0bc2134d9c228c8a0edbe2c3e3c9b5 (diff)
Adapt to butl::b_info() API change
Diffstat (limited to 'bdep/ci.cxx')
-rw-r--r--bdep/ci.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/bdep/ci.cxx b/bdep/ci.cxx
index e6acf98..3569feb 100644
--- a/bdep/ci.cxx
+++ b/bdep/ci.cxx
@@ -347,7 +347,9 @@ namespace bdep
{
// Add a package to the list and suppressing duplicates.
//
- auto add_package = [&o, &pkgs] (package_name n, const dir_path& d)
+ auto add_package = [&pkgs] (package_name n,
+ const dir_path& d,
+ package_info&& pi)
{
auto i (find_if (pkgs.begin (),
pkgs.end (),
@@ -356,8 +358,6 @@ namespace bdep
if (i != pkgs.end ())
return;
- package_info pi (package_b_info (o, d, false /* ext_mods */));
-
// Verify the package version, unless it is standard and thus is
// already verified.
//
@@ -380,13 +380,13 @@ namespace bdep
for (package_location& p: pp.packages)
{
dir_path d (pp.project / p.path);
- package_info pi (package_b_info (o, d, false /* ext_mods */));
+ package_info pi (package_b_info (o, d, b_info_flags::none));
if (pi.src_root == pi.out_root)
fail << "package " << p.name << " source directory is not forwarded" <<
info << "package source directory is " << d;
- add_package (p.name, d);
+ add_package (p.name, d, move (pi));
}
}
else
@@ -425,7 +425,7 @@ namespace bdep
package_info pi (package_b_info (o,
dir_path (c->path) /= n.string (),
- false /* ext_mods */));
+ b_info_flags::none));
verify_package_info (pi, n);