module Cudf:CUDF librarysig..end
type package = {
|
package : |
|
version : |
|
depends : |
|
conflicts : |
|
provides : |
|
installed : |
|
keep : |
|
extra : |
With this representation, optional properties have already been
expanded to their default values (if they have one). It is not
possible to know whether they were present or not in the CUDF
syntax.
val (=%) : package -> package -> booltype request = {
|
problem_id : |
|
install : |
|
remove : |
|
upgrade : |
val default_package : packageval default_request : requesttypecudf_doc =package list * request
typecudf_item =[ `Package of package | `Request of request ]
exception Constraint_violation of string
type universe
typecudf =universe * request
typesolution =universe
A universe encoding a solution matters only for its installed
packages, which are considered to be the resulting package
status
val load_universe : package list -> universeval lookup_package : universe -> Cudf_types.pkgname * Cudf_types.version -> packageNot_found if the requested package cannot be foundval mem_installed : ?include_features:bool ->
?ignore:(package -> bool) -> universe -> Cudf_types.vpkg -> boolinstalled packages)include_features : allow constraint to be satisfied by features
(i.e., Provides). Default: trueignore : make the lookup skip over all packages matching the given
package predicate. Default: do not ignore any packageval who_provides : universe ->
Cudf_types.vpkg -> (package * Cudf_types.version option) listv of the
feature.val lookup_packages : ?filter:Cudf_types.constr ->
universe -> Cudf_types.pkgname -> package listfilter : filter the found packages according to the given
version constraint. Default: None (i.e., no filtering)val get_installed : universe -> Cudf_types.pkgname -> package listlookup_packages composed with filtering on installed=trueval iter_packages : (package -> unit) -> universe -> unitval fold_packages : ('a -> package -> 'a) -> 'a -> universe -> 'aval get_packages : ?filter:(package -> bool) -> universe -> package listfilter : only return packages matching a given
predicate. Default is to return all packagesval universe_size : universe -> intval installed_size : universe -> intval status : universe -> universeval lookup_package_property : package -> string -> stringCudf_types) value as a stringNot_found if the given property name is not associated to
the given package (note that "being associated with" does not
necessarily mean that the property appears in the stanza, due to
default values)val lookup_request_property : request -> string -> stringCudf.lookup_package_property, but acting on request
information items.
To lookup the problem identifier as a string (which strictly
speaking is not a property) you should lookup "Problem"
val version_matches : Cudf_types.version -> Cudf_types.constr -> boolversion_matches 1 (Some(`Eq, 2)) = falseval (|=) : Cudf_types.version -> Cudf_types.constr -> boolCudf.version_matches