From 258058df91602d7459b12bea48d2b500dad257aa Mon Sep 17 00:00:00 2001 From: Kate Date: Thu, 21 Nov 2024 20:21:24 +0000 Subject: [PATCH] Don't ask confirmation when pinning a new package --- src/client/opamPinCommand.ml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/client/opamPinCommand.ml b/src/client/opamPinCommand.ml index 0dfa97051d3..38d98e8ef73 100644 --- a/src/client/opamPinCommand.ml +++ b/src/client/opamPinCommand.ml @@ -491,13 +491,6 @@ and source_pin version, None in - if not (OpamPackage.has_name st.packages name) && - not (OpamConsole.confirm - "Package %s does not exist, create as a %s package?" - (OpamPackage.Name.to_string name) - (OpamConsole.colorise `bold "NEW")) - then raise Aborted; - (match OpamStd.Option.map OpamFile.URL.url cur_urlf, target_url with | Some u, Some target when OpamUrl.( u.transport <> target.transport ||