Commit 63bdee5 1 parent 3a11680 commit 63bdee5 Copy full SHA for 63bdee5
File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 43
43
## Config
44
44
45
45
## Pin
46
+ * Don't ask confirmation when pinning an unknown package (absent from repositories) [ #6309 @kit-ty-kate ]
46
47
47
48
## List
48
49
Original file line number Diff line number Diff line change @@ -491,12 +491,9 @@ 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 was unknown until now"
496
+ (OpamPackage.Name. to_string name);
500
497
501
498
(match OpamStd.Option. map OpamFile.URL. url cur_urlf, target_url with
502
499
| Some u, Some target when OpamUrl. (
You can’t perform that action at this time.
0 commit comments