module Sources:sig
..end
include struct ... end
type
source = {
|
name : |
|
version : |
|
architecture : |
|
binaries : |
|
build_depends : |
|
build_depends_indep : |
|
build_depends_arch : |
|
build_conflicts : |
|
build_conflicts_indep : |
|
build_conflicts_arch : |
val default_source : source
val parse_s : ?opt:'a ->
?err:string ->
?multi:bool -> ('b * 'c -> 'a) -> string -> (string * ('b * 'c)) 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
val input_raw : ?filter:((string * (Format822.loc * Format822.architecture)) list -> bool) ->
?archs:string list -> string list -> source list
~archs
determines which which architectures should be considered while
parsing the Souces file. if ~arch is [] then all archs are cosideredval sep : string
val matcharch : string -> (bool * string) list -> bool
val matchprofile : 'a list -> (bool * 'a) list list -> bool
val select : string ->
'a list -> 'b * (bool * string) list * (bool * 'a) list list -> 'b option
val sources2packages : ?profiles:Format822.buildprofile list ->
?noindep:bool ->
?src:string ->
Format822.architecture ->
Format822.architecture -> source list -> Packages.package list
val is_source : ?src:string -> Packages.package -> bool
exception MismatchSrc of Cudf.package list
exception NotfoundSrc
val get_src_package : Cudf.universe -> Cudf.package -> Cudf.package
get_src_package universe binpkg
returns the source package associate
with the given binary package.
precondition : the package has "type" bin and the universe contains packages of "type" src encoded with sources2packages.
Raise MismatchSrc if there exists a source package with the same name
but with a different version . Raise NotfoundSrc if the univese does not
contain either a source package associated with the binary package or
a source package with the same name but different version.
val srcbin_table : Cudf.universe ->
Cudf.package list Pervasives.ref Common.CudfAdd.Cudf_hashtbl.t
val get_bin_packages : 'a Pervasives.ref Common.CudfAdd.Cudf_hashtbl.t ->
Common.CudfAdd.Cudf_hashtbl.key -> 'a
val binset : ('a -> Common.CudfAdd.Cudf_set.elt list) ->
'a list -> Common.CudfAdd.Cudf_set.t