aboutsummaryrefslogtreecommitdiff
path: root/bpkg/build.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-10 17:57:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-10 17:57:19 +0200
commit015bc5f163391990d0f0b4ee0e1226dee43eba04 (patch)
tree2022fc89bfd4b6e06d447f0400bd859f93dd9b80 /bpkg/build.cxx
parentddf8c2b62fa09eb765afc0c093d0d8908f7b69e4 (diff)
Add --configure-only|-c option to build command
Diffstat (limited to 'bpkg/build.cxx')
-rw-r--r--bpkg/build.cxx17
1 files changed, 10 insertions, 7 deletions
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<selected_package>& sp (p.selected);
+ for (const satisfied_package& p: reverse_iterate (pkgs))
+ {
+ const shared_ptr<selected_package>& 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;
+ }
}
}
}