class package :?name:string * Packages_types.name option -> ?version:string * Packages_types.version option -> ?installed:string * Packages_types.installed option -> ?depends:string * Packages_types.vpkgformula option -> ?conflicts:string * Packages_types.vpkglist option -> ?provides:string * Packages_types.vpkglist option -> ?recommends:string * Packages_types.vpkgformula option -> ?extras:(string * parse_extras_f option) list *
(string * string) list option -> Common.Format822.stanza ->object
..end
Representation of a PEF package. This object gets a stanza (a list of list of fields) and return a pef object. Each field can be directly initialized using the optional arguments, providing the name of the field and an optional value. If the value is None, then the value is computed by parsing the corresponding field in the 822 stanza. Otherwise, the field is initialized using the given value (and ignoring the value in the 822 stanza).
Extra fields can be parsed and added to the stanza.
The first element of extras
is a list of tuples where the first element
is a label indentifing a field and the second element is a parsing
function. If the second element of extras
is not None, then the list
of (field,value) is append to the list of parsed extras from the 822 stanza.
method name : Packages_types.name
method version : Packages_types.version
method conflicts : Packages_types.vpkglist
method depends : Packages_types.vpkgformula
method provides : Packages_types.vpkglist
method recommends : Packages_types.vpkgformula
method installed : Packages_types.installed
method extras : (string * string) list
val name : string * Packages_types.name
val version : string * Packages_types.version
val conflicts : string * Packages_types.vpkglist
val depends : string * Packages_types.vpkgformula
val provides : string * Packages_types.vpkglist
val recommends : string * Packages_types.vpkgformula
val installed : string * Packages_types.installed
method get_extra : string -> string
method add_extra : string ->
string ->
(< add_extra : 'a; conflicts : Packages_types.vpkglist;
depends : Packages_types.vpkgformula; extras : (string * string) list;
get_extra : string -> string; installed : Packages_types.installed;
name : Packages_types.name; pp : Stdlib.out_channel -> unit;
provides : Packages_types.vpkglist;
recommends : Packages_types.vpkgformula;
set_extras : (string * string) list -> 'b;
set_installed : Packages_types.installed -> 'b;
version : Packages_types.version; .. >
as 'b)
as 'a
method set_extras : (string * string) list -> 'b
method set_installed : Packages_types.installed -> 'b
method pp : Stdlib.out_channel -> unit