CUDF library
#
package
| : Cudf_types.pkgname | ; | |||
#
version
| : Cudf_types.version | ; | |||
#
depends
| : Cudf_types.vpkgformula | ; | |||
#
conflicts
| : Cudf_types.vpkglist | ; | |||
#
provides
| : Cudf_types.veqpkglist | ; | |||
#
installed
| : bool | ; | |||
#
was_installed
| : bool | ; | |||
#
keep
| : Cudf_types.enum_keep | ; | |||
#
pkg_extra
| : Cudf_types.typed_value Cudf_types.stanza | ; |
Representation of a parsed package description item.
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.
#
request_id
| : string | ; | |||
#
install
| : Cudf_types.vpkglist | ; | |||
#
remove
| : Cudf_types.vpkglist | ; | |||
#
upgrade
| : Cudf_types.vpkglist | ; | |||
#
req_extra
| : Cudf_types.typed_value Cudf_types.stanza | ; |
violation of a constraint imposed by CUDF specification
package universe (including package status, i.e., installed packages)
remove a package from an existing universe. The universe is modified in place
Lookup a specific package via a <name, version> key
Not_found
if the requested package cannot be found
Check existence of a specific package in the universe via a <name, version> key
check wheather a given package constraint is satisfied in a given
package status (i.e., the universe subset of installed
packages)
Ask who provides a given feature (predicate).
v
of the
feature.
lookup all available versions of a given package name
lookup all installed versions of a given package name.
Shorthand for lookup_packages
composed with filtering on installed=true
iter on all packages grouped by name. Each package name is associated to a list of packages with the same name and different versions
fold on all packages grouped by name. Each package name is associated to a list of packages with the same name and different versions
total numer of available packages (no matter whether they are installed or not)
low-level property lookup: given a package, lookup on it a property by name, returning its (pretty-printed, see [root:Cudf_types]) value as a string
Not_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)
Same as Cudf.lookup_package_property, but acting on request information items.
To lookup the request identifier as a string (which strictly speaking is not a property) you should lookup "request"
Same as Cudf.lookup_package_property, but acting on preamble information items.
To lookup the preamble identifier as a string (which strictly speaking is not a property) you should lookup "preamble"
Same as Cudf.lookup_package_property, but return a typed value.
Same as Cudf.lookup_request_property, but return a typed value.
Same as Cudf.lookup_preamble_property, but return a typed value.
lookup the type declaration of a given property (either core or extra)
lookup_typedecl name
is not the same as List.assoc
preamble.property name
; only the former takes into account core package
properties. See also [root:Cudf_conf].package_typedecl.
Not_found
if no declaration could be found for the given property
Check whether a version matches a version constraint,
e.g. version_matches 1 (Some(`Eq, 2)) = false