package opam-state

  1. Overview
  2. Docs

loading and handling of the repository state of an opam root (i.e. what is in ~/.opam/repo)

module Cache : sig ... end

Caching of repository loading (marshall of all parsed opam files)

Loads the repository state as load, and calls the given function while keeping it locked (as per the lock argument), releasing the lock afterwards

Returns the repo of origin and metadata corresponding to a package, if found, from a sorted list of repositories (highest priority first)

Given the repos state, and a list of repos to use (highest priority first), build a map of all existing package definitions

Finds a package repository definition from its name (assuming it's in ROOT/repos/)

Load all the metadata within the local mirror of the given repository, without cache

Releases any locks on the given repos_state

Calls the provided function, ensuring a temporary write lock on the given repository state

Writes the repositories config file back to disk

OCaml

Innovation. Community. Security.