aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/build.cxx7
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)