From 56af938cd423c1b6730d753ba1ce7b70cd660c29 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Oct 2015 11:04:24 +0200 Subject: Only update user selection in build command --- bpkg/build.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bpkg/build.cxx b/bpkg/build.cxx index a6c966a..ec9de3b 100644 --- a/bpkg/build.cxx +++ b/bpkg/build.cxx @@ -8,6 +8,7 @@ #include #include // make_move_iterator() #include // cout +#include // find() #include // reference_wrapper #include // reverse_iterate() @@ -37,7 +38,6 @@ namespace bpkg { // @@ TODO // - // - User-selected vs auto-selected packages. // - Detect and complain about dependency cycles. // - Configuration vars (both passed and preserved) // @@ -1219,8 +1219,11 @@ namespace bpkg { const shared_ptr& sp (p.selected); - // @@ TODO: update the user selection only. + // Update the user selection only. // + if (find (names.begin (), names.end (), sp->name) == names.end ()) + continue; + pkg_update (c, sp); if (verb) -- cgit v1.1