OPAM client state
Client state
#
partial
| : bool | ; | |||
#
root
| : OpamPath.t | ; | |||
#
switch
| : OpamTypes.switch | ; | |||
#
compiler
| : OpamTypes.compiler | ; | |||
#
compiler_version
| : OpamTypes.compiler_version lazy_t | ; | |||
#
opams
| : OpamFile.OPAM.t OpamTypes.package_map | ; | |||
#
repositories
| : OpamFile.Repo_config.t OpamTypes.repository_name_map | ; | |||
#
packages
| : OpamTypes.package_set | ; | |||
#
available_packages
| : OpamTypes.package_set Lazy.t | ; | |||
#
aliases
| : OpamFile.Aliases.t | ; | |||
#
compilers
| : OpamTypes.compiler_set | ; | |||
#
pinned
| : OpamFile.Pinned.t | ; | |||
#
installed
| : OpamFile.Installed.t | ; | |||
#
installed_roots
| : OpamFile.Installed_roots.t | ; | |||
#
reinstall
| : OpamFile.Reinstall.t | ; | |||
#
config
| : OpamFile.Config.t | ; | |||
#
package_index
| : OpamFile.Package_index.t | ; | |||
#
compiler_index
| : OpamFile.Compiler_index.t | ; |
Load the client state. The string argument is to identify to call site.
Rebuild the state cache.
Remove the state cache
Load state associated to env variables. All other fields are left empty.
Create a universe from the current state
Print a warning if the environment is not set-up properly on init.
Print a warning if the environment is not set-up properly on switch.
Update the user configuration.
Compute the value of a variable
Compute the value of a variable. Raise Not_found
if the variable is
not valid.
Lists of available variables and their description
Check for user-defined variable overwrite.
Pretty print a map of repositories
Builds a map which says in which repository the latest metadata
for a given package are. The function respect the bustom
priorities given by the order of priorities
.
Build a map which says in which repository the latest metadata for a given compiler is.
Find a given repostiory. Exit the program if no such repository name exists.
Find a given repostiory.
Check the redirections.
Repository state
Return the active repository for a given compiler
Return all the packages with the given name
Return all the collection of installed packages, for all the available packages
Get the active repository for a given package
Get the active repository for a given package
Add the given packages to the set of package to reinstall. If all
is set, this is done for ALL the switches (useful when a package
change upstream for instance). If not, only the reinstall state of the
current switch is changed.
Remove some metadata from the global state if they are not used anymore.
Get all the development packages. This include the one locally pinned (for the current switch) and the global dev packages.
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 files.
The set of pinned packages in the state (warning: costly)
Create $opam/compilers/system.com. Take the global root and the new system compiler version as arguments.
Consistency checks: do the base package for the current compiler are installed ?
/ *
Update hook