Module DebianFormats.Binary

type t = {
name : name;
version : version;
essential : bool;
source : name * version option;
depends : vpkg list list;
pre_depends : vpkg list list;
recommends : vpkg list list;
suggests : vpkg list;
enhances : vpkg list;
conflicts : vpkg list;
breaks : vpkg list;
replaces : vpkg list;
provides : veqpkg list;
extras : (string * string) list;
}

debian package format

val parse_name : string -> string
val parse_vpkg : string -> string * (string * string) option
val parse_veqpkg : string -> string * (string * string) option
val parse_conj : string -> (string * (string * string) option) list
val parse_cnf : string -> (string * (string * string) option) list list
val parse_prov : string -> (string * (string * string) option) list
val parse_essential : string -> bool
val parse_packages_fields : string list -> (string * name list) list -> t option
val parse : ?⁠extras:string list -> (t -> 'a) -> IO.input -> 'a list

parse a debian Packages file from the channel ch