From f9cef3e7cebc66605e12a784c2439708650c6f19 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 Jun 2022 14:48:22 +0300 Subject: Don't explicitly update user-selected dependency packages in pkg-build --- bpkg/pkg-build.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bpkg') 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& 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, -- cgit v1.1