package opam-client
Install
dune-project
Dependency
Authors
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=abb7d7788f290d81d73b924b307b4bef
sha512=0d8ee19ac0f3df9de4fd9cfa8daab1f7228f090f5e2e7e26bedf24d8c2ab377aade95048f2d7cd9ee9dbbe738729e26dc99f41f730fa2252df74953362464a22
doc/opam-client/OpamAction/index.html
Module OpamActionSource
Handles concrete actions on packages, like installations and removals
val download_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.package ->
(string option * string) option OpamProcess.jobdownload t pkg downloads the source of the package pkg into its locally cached source dir. Returns Some (short_errmsg option, long_errmsg) on error, None on success. See OpamTypes.Not_available.
This doesn't update dev packages that already have a locally cached source.
val prepare_package_source :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.package ->
OpamTypes.dirname ->
exn option OpamProcess.jobprepare_package_source t pkg dir updates the given source dir with the extra downloads, overlays and patches from the package's metadata applied.
val build_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
?test:bool ->
?doc:bool ->
OpamTypes.dirname ->
OpamTypes.package ->
exn option OpamProcess.jobbuild_package t build_dir pkg builds the package pkg within build_dir. Returns None on success, Some exn on error. See download_package and prepare_package_source for the previous steps.
val install_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
?test:bool ->
?doc:bool ->
?build_dir:OpamTypes.dirname ->
OpamTypes.package ->
exn option OpamProcess.jobinstall_package t pkg installs an already built package. Returns None on success, Some exn on error. Do not update OPAM's metadata. See build_package to build the package.
Find out if the package source is needed for uninstall
val remove_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
?silent:bool ->
?changes:OpamDirTrack.t ->
?force:bool ->
?build_dir:OpamTypes.dirname ->
OpamTypes.package ->
unit OpamProcess.jobRemoves a package. If changes is unspecified, it is read from the package's change file. if force is specified, remove files marked as added in changes even if the files have been modified since.
val noop_remove_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.package ->
boolReturns true whenever remove_package is a no-op.
val cleanup_package_artefacts :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.package ->
unitRemoves auxiliary files related to a package, after checking that they're not needed
val sources_needed :
'a OpamStateTypes.switch_state ->
OpamSolver.ActionGraph.t ->
OpamTypes.package_setCompute the set of packages which will need to be downloaded to apply a solution. Takes a graph of atomic actions.