diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-06-28 14:48:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-06-28 14:48:22 +0300 |
commit | f9cef3e7cebc66605e12a784c2439708650c6f19 (patch) | |
tree | 15042e169005b046b70ecd47fed9a1371d130ca7 /bpkg/pkg-build.cxx | |
parent | 92fe02498721c44b8a35e9fbebe7b6aded455916 (diff) |
Don't explicitly update user-selected dependency packages in pkg-build
Diffstat (limited to 'bpkg/pkg-build.cxx')
-rw-r--r-- | bpkg/pkg-build.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index 64bb452..b7dc421 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -12163,6 +12163,10 @@ namespace bpkg // First add the user selection. // + // Only update user-selected packages which are specified on the command + // line as build to hold. Note that the dependency package will be updated + // implicitly via their dependents, if the latter are updated. + // for (const build_package& p: reverse_iterate (pkgs)) { assert (p.action); @@ -12174,7 +12178,7 @@ namespace bpkg const shared_ptr<selected_package>& sp (p.selected); if (!sp->system () && // System package doesn't need update. - p.user_selection ()) + p.user_selection (hold_pkgs)) upkgs.push_back (pkg_command_vars {db.config_orig, !multi_config () && db.main (), sp, |