From afa0d3648d5cff205980cec3b3e2ac0de2726702 Mon Sep 17 00:00:00 2001 From: Kate Date: Wed, 22 Jan 2025 21:32:22 +0000 Subject: [PATCH] Do not ask to install pin-depends twice --- master_changes.md | 1 + src/client/opamAuxCommands.ml | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/master_changes.md b/master_changes.md index aef29e1f5d8..8af8155bfb1 100644 --- a/master_changes.md +++ b/master_changes.md @@ -47,6 +47,7 @@ users) ## Pin * [NEW] Make it so pin list display the current revision of a pinned repository in a new column [#6274 @desumn - fix #5533] * [BUG] Stop double pin of packages located in ./opam/opam [#6343 @kit-ty-kate - fix #6342] + * [BUG] Do not ask to install pin-depends twice [#6375 @kit-ty-kate - fix #6374] ## List diff --git a/src/client/opamAuxCommands.ml b/src/client/opamAuxCommands.ml index cbcc6851b5d..5bb3cb18d02 100644 --- a/src/client/opamAuxCommands.ml +++ b/src/client/opamAuxCommands.ml @@ -494,12 +494,6 @@ let autopin st ?(simulate=false) ?quiet ?locked ?recurse ?subpath else OpamUpdate.dev_packages st ~working_dir:OpamPackage.Set.empty already_pinned in - let st = - if OpamClientConfig.(!r.ignore_pin_depends) then st else - OpamPackage.Set.fold (fun nv st -> - OpamPinCommand.handle_pin_depends st nv (OpamSwitchState.opam st nv)) - (OpamPackage.Set.union pins already_pinned_set) st - in st, atoms let check_and_revert_sandboxing root config =