diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-22 11:04:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-22 11:04:24 +0200 |
commit | 56af938cd423c1b6730d753ba1ce7b70cd660c29 (patch) | |
tree | 2efca452bfb78d49a105cf2ebeb3a0a3d4899e99 | |
parent | fd68f4dd2036c106f047793a1e5656b1ade6fd9d (diff) |
Only update user selection in build command
-rw-r--r-- | bpkg/build.cxx | 7 |
1 files 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 <list> #include <iterator> // make_move_iterator() #include <iostream> // cout +#include <algorithm> // find() #include <functional> // reference_wrapper #include <butl/utility> // 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<selected_package>& 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) |