Module Packages

module Packages: sig .. end
Representation of a debian package description item.

include struct ... end
type package = {
   name : Format822.name;
   version : Format822.version;
   architecture : Format822.architecture;
   multiarch : Format822.multiarch;
   essential : bool;
   build_essential : bool;
   extra_source_only : bool;
   priority : string;
   source : Format822.name * Format822.version option;
   depends : Format822.vpkgformula;
   pre_depends : Format822.vpkgformula;
   recommends : Format822.vpkgformula;
   suggests : Format822.vpkgformula;
   enhances : Format822.vpkgformula;
   conflicts : Format822.vpkglist;
   breaks : Format822.vpkglist;
   replaces : Format822.vpkglist;
   provides : Format822.vpkglist;
   extras : (string * string) list;
}
debian package format
val default_package : package
val lexbuf_wrapper : ((Lexing.lexbuf -> Packages_parser.token) -> Lexing.lexbuf -> 'a) ->
Format822.loc * string -> 'a
val parse_name : Format822.loc * Format822.architecture -> Format822.name
val parse_version : Format822.loc * Format822.architecture -> Format822.version
val parse_multiarch : Format822.loc * Format822.architecture -> Format822.multiarch
val parse_source : Format822.loc * Format822.architecture -> Format822.source
val parse_vpkg : Format822.loc * string -> Format822.vpkg
val parse_vpkglist : Format822.loc * Format822.architecture -> Format822.vpkglist
val parse_vpkgformula : Format822.loc * Format822.architecture -> Format822.vpkgformula
val parse_binarylist : Format822.loc * string -> Format822.vpkglist
val assoc : string -> (string * 'a) list -> 'a
exception ParseError of string * string
exception IgnorePackage of string
val parse_s : ?opt:'a ->
?err:string ->
?multi:bool -> ('b * 'c -> 'a) -> string -> (string * ('b * 'c)) list -> 'a
val parse_string : 'a * 'b -> 'b
val parse_int : 'a * string -> int
val parse_e : (string * ((string * ('a * 'b)) list -> 'b) option) list ->
(string * ('a * 'b)) list -> (string * 'b) list
val parse_bool : 'a * string -> bool
val parse_architecture : string list -> 'a * string -> string
val parse_package_stanza : ((string * (Format822.loc * Format822.architecture)) list -> bool) option ->
Format822.architecture list ->
(string *
((string * (Format822.loc * Format822.architecture)) list ->
Format822.architecture)
option)
list ->
(string * (Format822.loc * Format822.architecture)) list ->
package option
val status_filter : (string * ('a * string)) list -> bool
val arch_filter : 'a list -> (string * ('b * 'a)) list -> bool
val packages_parser : string ->
((string * (Format822.loc * string)) list -> 'a option) ->
'a list -> Format822.deb_parser -> 'a list
val parse_packages_in : ?filter:((string * (Format822.loc * Format822.architecture)) list -> bool) ->
?archs:Format822.architecture list ->
?extras:(string *
((string * (Format822.loc * Format822.architecture)) list ->
Format822.architecture)
option)
list ->
string -> IO.input -> package list
val merge : Set.elt list -> Set.elt list -> Set.elt list
val installed_re : Re.re
val is_installed : package -> bool
val is_on_hold : package -> bool
val default_extras : (string * 'a option) list
val input_raw : ?filter:((string * (Format822.loc * Format822.architecture)) list -> bool) ->
?archs:Format822.architecture list ->
?extras:(string *
((string * (Format822.loc * Format822.architecture)) list ->
Format822.architecture)
option)
list ->
string list -> Set.elt list
input_raw file : parse a debian Packages file from file ~archs determines which which architectures should be considered while parsing the Packages file. if ~arch is [] then all archs are cosidered
val input_raw_ch : ?filter:((string * (Format822.loc * Format822.architecture)) list -> bool) ->
?archs:Format822.architecture list ->
?extras:(string *
((string * (Format822.loc * Format822.architecture)) list ->
Format822.architecture)
option)
list ->
IO.input -> Set.elt list
input_raw_ch ch : parse a debian Packages file from channel ch