Skip to content

Commit

Permalink
Don't ask confirmation when pinning a new package
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Nov 21, 2024
1 parent 3a11680 commit 258058d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/client/opamPinCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 258058d

Please sign in to comment.