Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Synchronisation and downloading of repositories and package sources
val repositories :
OpamStateTypes.rw OpamStateTypes.repos_state ->
OpamTypes.repository list ->
OpamStateTypes.rw OpamStateTypes.repos_state
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)
val dev_packages :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.package_set ->
OpamStateTypes.rw OpamStateTypes.switch_state * OpamTypes.package_set
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.
val dev_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.package ->
((OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamStateTypes.rw OpamStateTypes.switch_state)
* bool)
OpamProcess.job
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
val pinned_packages :
OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamTypes.name_set ->
OpamStateTypes.rw OpamStateTypes.switch_state * OpamTypes.package_set
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
val pinned_package :
OpamStateTypes.rw OpamStateTypes.switch_state ->
?version:OpamTypes.version ->
OpamTypes.name ->
((OpamStateTypes.rw OpamStateTypes.switch_state ->
OpamStateTypes.rw OpamStateTypes.switch_state)
* bool)
OpamProcess.job
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
val download_upstream :
'a OpamStateTypes.switch_state ->
OpamTypes.package ->
OpamTypes.dirname ->
OpamTypes.generic_file OpamTypes.download option OpamProcess.job
Download or synchronise the upstream source for the given package into the given directory. For non-VC remotes, verifies the checksum if any
val fetch_dev_package :
OpamFile.URL.t ->
OpamTypes.dirname ->
OpamTypes.package ->
OpamTypes.generic_file OpamTypes.download OpamProcess.job
Low-level function to retrieve the package source into its local cache