Commit 9e214de 1 parent d2f2e6b commit 9e214de Copy full SHA for 9e214de
File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 47
47
## Pin
48
48
* [ NEW] Make it so pin list display the current revision of a pinned repository in a new column [ #6274 @desumn - fix #5533 ]
49
49
* [ BUG] Stop double pin of packages located in ./opam/opam [ #6343 @kit-ty-kate - fix #6342 ]
50
+ * Don't ask confirmation when pinning an unknown package (absent from repositories) [ #6309 @kit-ty-kate @rjbou - fix #3199 ]
50
51
51
52
## List
52
53
Original file line number Diff line number Diff line change @@ -491,12 +491,10 @@ and source_pin
491
491
version, None
492
492
in
493
493
494
- if not (OpamPackage. has_name st.packages name) &&
495
- not (OpamConsole. confirm
496
- " Package %s does not exist, create as a %s package?"
497
- (OpamPackage.Name. to_string name)
498
- (OpamConsole. colorise `bold " NEW" ))
499
- then raise Aborted ;
494
+ if not (OpamPackage. has_name st.packages name) then
495
+ OpamConsole. note " Package %s does not exist in opam repositories \
496
+ registered in the current switch."
497
+ (OpamPackage.Name. to_string name);
500
498
501
499
(match OpamStd.Option. map OpamFile.URL. url cur_urlf, target_url with
502
500
| Some u, Some target when OpamUrl. (
You can’t perform that action at this time.
0 commit comments