package opam-state

  1. Overview
  2. Docs

Synchronisation and downloading of repositories and package sources

Update the given repositories from their upstream, and returns the updated state. This also saves the updated cached state, and the updated repository config (it may be changed by e.g. redirects)

update_dev_packages t checks for upstream changes for packages first in the switch cache and then in the global cache. Return the packages whose contents have changed upstream.

Side-effect: update the reinstall file, adding installed changed packages to the current switch to-reinstall set.

Updates a single dev or pinned package from its upstream; returns true if changed, false otherwise, and a switch_state update function, applying possible changes in packages metadata

A subset of update_dev_packages that only takes packages names and only works on pinned packages. Also updates the reinstall file of the current switch

Updates a dev pinned package from its upstream; returns true if changed, false otherwise, and a switch_state update function that applies possible changes in packages metadata. Updates the on-disk overlay

Download or synchronise the upstream source for the given package into the given directory. For non-VC remotes, verifies the checksum if any

Low-level function to retrieve the package source into its local cache

OCaml

Innovation. Community. Security.