package debian-formats

  1. Overview
  2. Docs
type t = {
  1. name : name;
  2. version : version;
  3. binary : vpkg list;
  4. build_depends : (vpkg * (bool * architecture) list) list list;
  5. build_depends_indep : (vpkg * (bool * architecture) list) list list;
  6. build_conflicts : (vpkg * (bool * architecture) list) list;
  7. build_conflicts_indep : (vpkg * (bool * architecture) list) list;
  8. architecture : architecture list;
  9. md5sums : (md5sum * file_size * filename) list;
  10. sha1 : (sha1 * file_size * filename) list;
  11. sha256 : (sha256 * file_size * filename) list;
  12. directory : filename;
  13. section : string;
}
val parse_name : string -> string
val parse_arch : string -> string list
val parse_version : string -> string
val parse_binary : string -> (string * (string * string) option) list
val parse_cnf : string -> ((string * (string * string) option) * (bool * string) list) list list
val parse_conj : string -> ((string * (string * string) option) * (bool * string) list) list
val parse_cksum : string list -> (string * int64 * string) list
val parse_sources_fields : (string * name list) list -> t option
val parse : (t -> 'a) -> IO.input -> 'a list

parse a debian Sources file from channel

val filename : t -> [< `Diff | `Dsc | `Other of filename | `Tarball ] -> filename * file_size * [> `MD5Sum of md5sum | `Sha1 of sha1 | `Sha256 of sha256 ] list
OCaml

Innovation. Community. Security.