package debian-formats

  1. Overview
  2. Docs
type source_section = {
  1. source : name;
  2. section : name;
  3. priority : name;
  4. maintainer : string;
  5. uploaders : string list;
  6. standards_version : version;
  7. build_depends : (vpkg * (bool * architecture) list) list list;
  8. build_depends_indep : (vpkg * (bool * architecture) list) list list;
  9. build_conflicts : (vpkg * (bool * architecture) list) list;
  10. build_conflicts_indep : (vpkg * (bool * architecture) list) list;
}

debian source section format

type binary_section = {
  1. package : name;
  2. essential : bool;
  3. depends : vpkg list list;
  4. pre_depends : vpkg list list;
  5. recommends : vpkg list list;
  6. suggests : vpkg list;
  7. enhances : vpkg list;
  8. conflicts : vpkg list;
  9. breaks : vpkg list;
  10. replaces : vpkg list;
  11. provides : veqpkg list;
  12. extras : (string * string) list;
}

debian binary sections 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_essential : string -> bool
val parse_source_fields : (string * name list) list -> source_section option
val parse_binary_fields : string list -> (string * name list) list -> binary_section option
val parse : IO.input -> source_section * binary_section list
val filename : string
val default : unit -> source_section * binary_section list
OCaml

Innovation. Community. Security.