package dose3-extra

  1. Overview
  2. Docs

Debian release files. This file format, and its use in apt, is described on http://wiki.debian.org/SecureApt.

type release = {
  1. fname : string;
  2. origin : string;
  3. label : string;
  4. suite : string;
  5. version : string;
  6. codename : string;
  7. date : string;
  8. architecture : string;
  9. component : string;
  10. notauto : bool;
  11. autoup : bool;
  12. description : string;
  13. md5sums : (string * string * string) list;
  14. sha1 : (string * string * string) list;
  15. sha256 : (string * string * string) list;
}

The type for representing the contents of one release file

val parse_release_in : string -> IO.input -> release option

parse_release_in filename channel parses the contents of a release file of name filename from the input channel channel. Returns Some(c) when c is the contents of the release file read from the stream, or None when the stream contains only whitespace.

The release file may be signed, but in this case the validity of the signature is not checked!!

OCaml

Innovation. Community. Security.