From 015bc5f163391990d0f0b4ee0e1226dee43eba04 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 10 Oct 2015 17:57:19 +0200 Subject: Add --configure-only|-c option to build command --- bpkg/build.cxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'bpkg/build.cxx') diff --git a/bpkg/build.cxx b/bpkg/build.cxx index eda1199..10f668b 100644 --- a/bpkg/build.cxx +++ b/bpkg/build.cxx @@ -1141,16 +1141,19 @@ namespace bpkg // update // - for (const satisfied_package& p: reverse_iterate (pkgs)) + if (!o.configure_only ()) { - const shared_ptr& sp (p.selected); + for (const satisfied_package& p: reverse_iterate (pkgs)) + { + const shared_ptr& sp (p.selected); - // @@ TODO: update user selection only. - // - pkg_update (c, sp); + // @@ TODO: update the user selection only. + // + pkg_update (c, sp); - if (verb) - text << "updated " << sp->name << " " << sp->version; + if (verb) + text << "updated " << sp->name << " " << sp->version; + } } } } -- cgit v1.1