OpamRepositoryRootThis module abstract the notion of repository root over its concrete implementation (could be a database, a file, a directory, etc.)
module Dir : sig ... endRepository root implemented as a directory
module Tgz : sig ... endval extract_in_job : Tgz.t -> Dir.t -> exn option OpamProcess.jobquarantine repo_root returns a temporary repository root dedicated to repo_root. the returned repository is not created on disk and points to a statically known repository located in the same parent directory as repo_root.
val backup : inn:OpamTypes.dirname -> t -> tval remove : t -> unitval is_empty : t -> bool optionval make_empty : t -> unitval dirname : t -> OpamTypes.dirnameval basename : t -> OpamTypes.basenameval to_string : t -> stringval remove_prefix : t -> OpamTypes.filename -> OpamTypes.unix_filenameval remove_prefix_dir : t -> OpamTypes.dirname -> OpamTypes.unix_dirnameval string_of_backend : t -> stringval exists : t -> boolval is_symlink : t -> boolval read_file :
(module OpamFile.IO_FILE with type t = 'a) ->
?safe:bool ->
t ->
?filename:'a OpamFile.t ->
string ->
'aval patch :
allow_unclean:bool ->
[ `Patch_file of OpamTypes.filename | `Patch_diffs of Patch.t list ] ->
t ->
(Patch.operation list, exn) Stdlib.resultval delayed_read_repo : t -> bool * (unit -> OpamFile.Repo.t)Returns a pair (exists, f) where exists tells whether the repo file exists in the repository and f reads it
val remove_both : OpamTypes.dirname -> OpamTypes.repository_name -> unitRemove repo_name repository roots, directory and archive, if present
val on_dir : (OpamTypes.dirname -> 'a) -> t -> 'aApplies the function in the repository root directory. If repository root is an archive, it uncompress it, applies the function and update archive with the changed directory.
val root_exists : OpamTypes.dirname -> OpamTypes.repository_name -> bool