Module DebianFormats.Source

type t = {
name : name;
version : version;
binary : vpkg list;
build_depends : (vpkg * (bool * architecture) list) list list;
build_depends_indep : (vpkg * (bool * architecture) list) list list;
build_conflicts : (vpkg * (bool * architecture) list) list;
build_conflicts_indep : (vpkg * (bool * architecture) list) list;
architecture : architecture list;
md5sums : (md5sum * file_size * filename) list;
sha1 : (sha1 * file_size * filename) list;
sha256 : (sha256 * file_size * filename) list;
directory : filename;
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