package opam-repository

  1. Overview
  2. Docs

Operations on repositories (update, fetch...) based on the different backends implemented in separate modules

Get the list of packages

val packages_with_prefixes : OpamTypes.repository -> string option OpamTypes.package_map

Get the list of packages (and their possible prefix)

Repository backends

Initialize $opam/repo/$repo

Update $opam/repo/$repo.

Download an url. Several mirrors can be provided, in which case they will be tried in order in case of an error.

Pull and fix the resulting digest

Pull an archive in a repository

Get the optional revision associated to a backend.

val make_archive : ?gener_digest:bool -> OpamTypes.repository -> string option -> OpamTypes.package -> unit OpamProcess.job

make_archive ?gener_digest repo prefix package builds the archive for the given package. By default, the digest that appears in $NAME.$VERSION/url is not modified, unless gener_digest is set.

val find_backend : OpamTypes.repository -> (module OpamRepositoryBackend.S)

Find a backend

val find_backend_by_kind : OpamUrl.backend -> (module OpamRepositoryBackend.S)
OCaml

Innovation. Community. Security.