Module Sources

module Sources: sig .. end
Representation of a parsed source description item. all fields are string

include struct ... end
type source = {
   name : Format822.name;
   version : Format822.version;
   architecture : Format822.architecture list;
   build_depends : Format822.builddepsformula;
   build_depends_indep : Format822.builddepsformula;
   build_conflicts : Format822.builddepslist;
   build_conflicts_indep : Format822.builddepslist;
}
val default_source : source
val parse_s : ?opt:'a ->
?err:string ->
?multi:bool ->
((Lexing.position * Lexing.position) * 'b -> 'a) ->
string -> (string * ((Lexing.position * Lexing.position) * 'b)) list -> 'a
val parse_name : Format822.loc * Format822.architecture -> Format822.name
val parse_version : Format822.loc * Format822.architecture -> Format822.version
val parse_builddepslist : Format822.loc * Format822.architecture -> Format822.builddepslist
val parse_builddepsformula : Format822.loc * Format822.architecture -> Format822.builddepsformula
val parse_architectures : string list -> Format822.loc * string -> Format822.architecture list
val parse_package_stanza : ((string * (Format822.loc * Format822.architecture)) list -> bool) option ->
string list ->
(string * (Format822.loc * Format822.architecture)) list ->
source option
val parse_sources_in : ?filter:((string * (Format822.loc * Format822.architecture)) list -> bool) ->
?archs:string list -> string -> IO.input -> source list
parse a debian Sources file from channel
val input_raw : ?filter:((string * (Format822.loc * Format822.architecture)) list -> bool) ->
?archs:string list -> string list -> source list
parse a debian Sources file. ~archs determines which which architectures should be considered while parsing the Souces file. if ~arch is [] then all archs are cosidered
val sep : string
val select : string ->
'a option -> 'b * (bool * string) list * (bool * 'a) list -> 'b option
val sources2packages : ?profiles:bool ->
?noindep:bool ->
?src:Format822.buildprofile ->
string -> source list -> Packages.package list
transform a list of sources packages into dummy binary packages
val is_source : ?src:string -> Packages.package -> bool