package debian-formats

  1. Overview
  2. Docs
type t = {
  1. name : name;
  2. version : version;
  3. essential : bool;
  4. source : name * version option;
  5. depends : vpkg list list;
  6. pre_depends : vpkg list list;
  7. recommends : vpkg list list;
  8. suggests : vpkg list;
  9. enhances : vpkg list;
  10. conflicts : vpkg list;
  11. breaks : vpkg list;
  12. replaces : vpkg list;
  13. provides : veqpkg list;
  14. 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

OCaml

Innovation. Community. Security.