Skip to content

Commit

Permalink
Export a few more functions from OpamClient
Browse files Browse the repository at this point in the history
These are useful for handling reinstallations from e.g. `opam-custom-install`
  • Loading branch information
AltGr committed Oct 21, 2020
1 parent 8e3a308 commit b5d6d58
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/client/opamClient.mli
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,25 @@ module PIN: sig
val post_pin_action: rw switch_state -> package_set -> name list -> rw switch_state

end


(** {2 Auxiliary functions}
These functions are exposed for advanced uses by external libraries
*)

(** Orphan packages are installed but no longer available packages; we add
special treatment so that opam doesn't force their removal for consistency
reasons on any action. Returns the "fixed" state, fully orphan packages (no
available version of the package remaining), and orphan package versions.
Find more technical explanations in the source. *)
val orphans:
?changes:package_set -> ?transitive:bool ->
'a switch_state ->
'a switch_state * package_set * package_set

(** An extended version of [orphans] that checks for conflicts between a given
request and the orphan packages *)
val check_conflicts:
'a switch_state -> atom list ->
'a switch_state * package_set * package_set

0 comments on commit b5d6d58

Please sign in to comment.