Skip to content

Commit

Permalink
Merge pull request #4591 from AltGr/depext-msg-up
Browse files Browse the repository at this point in the history
Fix and improve some depext messages
  • Loading branch information
rjbou authored Apr 18, 2021
2 parents 2a8f23f + 3a8241f commit a48acfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ New option/command/subcommand are prefixed with ◈.
* Handle macport variants [#4509 @rjbou - fix #4297]
* Always upgrade all the installed packages when installing a new package on Archlinux [#4556 @kit-ty-kate]
* Handle some additional environment variables (`OPAMASSUMEDEPEXTS`, `OPAMNODEPEXTS`) [#4587 @AltGr]
* Improve messages to hint that answering `no` doesn't abort installation [@AltGr]
* Improve messages to hint that answering `no` doesn't abort installation [#4591 @AltGr]

## Sandbox
* Fix the conflict with the environment variable name used by dune [#4535 @smorimoto - fix ocaml/dune#4166]
Expand Down
10 changes: 6 additions & 4 deletions src/client/opamSolution.ml
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,14 @@ let parallel_apply t
(if bypass <> !bypass_ref then
(let spkgs = OpamSysPkg.Set.Op.(bypass -- !bypass_ref) in
OpamConsole.note
"The bypass of system package %s has been registered in this switch. You \
can use `opam option depext-bypass-=%s' to revert."
"Requirement for system package%s %s overridden in this switch. Use \
`opam option depext-bypass-=%s' to revert."
(if OpamSysPkg.Set.cardinal spkgs > 1 then "s" else "")
(OpamStd.Format.pretty_list
(List.map OpamSysPkg.to_string
(OpamSysPkg.Set.elements spkgs))));
(OpamSysPkg.Set.elements spkgs)))
(OpamStd.List.concat_map "," OpamSysPkg.to_string
(OpamSysPkg.Set.elements spkgs)));
bypass_ref := bypass;
invariant_ref := invariant;
let switch_config =
Expand Down Expand Up @@ -1106,7 +1108,7 @@ let install_depexts ?(force_depext=false) ?(confirm=true) t packages =
else if
not confirm || OpamConsole.confirm
"Let opam run your package manager to install the required system \
packages?"
packages?\n(answer 'n' for other options)"
then
try
OpamSysInteract.install sys_packages; (* handles dry_run *)
Expand Down

0 comments on commit a48acfb

Please sign in to comment.