From 2169f0e960c6e2b94518c03e6eb0406908b96e65 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Jan 2020 09:07:09 +0200 Subject: Improve module loading API --- libbuild2/dist/operation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/dist/operation.cxx') diff --git a/libbuild2/dist/operation.cxx b/libbuild2/dist/operation.cxx index 12ae464..90be2c0 100644 --- a/libbuild2/dist/operation.cxx +++ b/libbuild2/dist/operation.cxx @@ -346,7 +346,7 @@ namespace build2 // Copy over all the files. Apply post-processing callbacks. // - module& mod (*rs->lookup_module (module::name)); + module& mod (*rs->find_module (module::name)); prog = prog && show_progress (1 /* max_verb */); size_t prog_percent (0); @@ -380,7 +380,7 @@ namespace build2 { srs = &ctx.scopes.find (out_root / pd); - if (auto* m = srs->lookup_module (module::name)) + if (auto* m = srs->find_module (module::name)) cbs = &m->callbacks_; else fail << "dist module not loaded in subproject " << pd; -- cgit v1.1