package dose3-extra

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Dose_debian.SourcesSource

Representation of a parsed source description item. all fields are string

include sig ... end
Sourceval it : Dose_common__Util.Info.t
Sourceval info : ('a, unit, string, unit) format4 -> 'a
Sourceval nt : Dose_common__Util.Notice.t
Sourceval notice : ('a, unit, string, unit) format4 -> 'a
Sourceval wt : Dose_common__Util.Warning.t
Sourceval warning : ('a, unit, string, unit) format4 -> 'a
Sourceval dt : Dose_common__Util.Debug.t
Sourceval debug : ('a, unit, string, unit) format4 -> 'a
Sourceval fatal : ('a, unit, string, 'b) format4 -> 'a
Sourceclass source : ?name:(string * Dose_pef.Packages_types.name option) option -> ?version: (string * Dose_pef.Packages_types.version option) option -> ?architecture:(string * Dose_pef.Packages_types.architecture list option) option -> ?build_depends:(string * Dose_pef.Packages_types.builddepsformula option) option -> ?build_depends_indep: (string * Dose_pef.Packages_types.builddepsformula option) option -> ?build_depends_arch:(string * Dose_pef.Packages_types.builddepsformula option) option -> ?build_conflicts:(string * Dose_pef.Packages_types.builddepslist option) option -> ?build_conflicts_indep: (string * Dose_pef.Packages_types.builddepslist option) option -> ?build_conflicts_arch:(string * Dose_pef.Packages_types.builddepslist option) option -> Dose_extra.Format822.stanza -> object ... end
Sourceval parse_package_stanza : (Dose_extra.Format822.stanza -> bool) option -> string list -> Dose_extra.Format822.stanza -> source option
Sourceval parse_sources_in : ?filter:(Dose_extra.Format822.stanza -> bool) -> ?archs:string list -> string -> IO.input -> source list

parse a debian Sources file from channel

Sourceval input_raw : ?filter:(Dose_extra.Format822.stanza -> 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

Sourceval sep : string
Sourceval matcharch : string -> (bool * string) list -> bool
Sourceval matchprofile : 'a list -> (bool * 'a) list list -> bool
Sourceval select : string -> 'a list -> ('b * (bool * string) list * (bool * 'a) list list) -> 'b option
Sourceval src2pkg : ?dropalternatives:bool -> ?profiles:string list -> ?noindep:bool -> ?noarch:bool -> ?src:string -> Dose_pef.Packages_types.architecture -> Dose_pef.Packages_types.architecture -> < architecture : string list ; build_conflicts : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list ; build_conflicts_arch : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list ; build_conflicts_indep : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list ; build_depends : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list list ; build_depends_arch : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list list ; build_depends_indep : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list list ; name : Dose_pef.Packages_types.name ; version : Dose_pef.Packages_types.version.. > -> Packages.package
Sourceval sources2packages : ?dropalternatives:bool -> ?profiles:string list -> ?noindep:bool -> ?noarch:bool -> ?src:string -> Dose_pef.Packages_types.architecture -> Dose_pef.Packages_types.architecture -> < architecture : string list ; build_conflicts : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list ; build_conflicts_arch : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list ; build_conflicts_indep : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list ; build_depends : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list list ; build_depends_arch : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list list ; build_depends_indep : (Dose_pef.Packages_types.vpkg * (bool * string) list * (bool * string) list list) list list ; name : Dose_pef.Packages_types.name ; version : Dose_pef.Packages_types.version.. > list -> Packages.package list

transform a list of sources packages into dummy binary packages. * This function preserve the order

Sourceval is_source : ?src:string -> < extras : (string * string) list.. > -> bool

Check if a package is of "Type" source as encoded by the function sources2packages

Sourceexception MismatchSrc of Cudf.package list
Sourceexception NotfoundSrc
Sourceval 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.

Returns an hash table that associates source packages (encoded by the function sources2packages) to binary packages in the universe. It is possible that a source package is not associated with any binary packages.

Returns the list of binary packages associated to a package of "Type" source encoded by the function sources2packages. The table h associated each source with a list of binaries

Returns the set of binary packages generated by the packages in srclist. The function get_bin_packages gets a source package and returns the set of packages associated to it. If the source package is not known, then it is ignored.

OCaml

Innovation. Community. Security.