package dose3-extra

  1. Overview
  2. Docs

Apt command line parsing

module Pcre = Re_pcre
include sig ... end
val it : Dose_common__Util.Info.t
val info : ('a, unit, string, unit) Stdlib.format4 -> 'a
val nt : Dose_common__Util.Notice.t
val notice : ('a, unit, string, unit) Stdlib.format4 -> 'a
val wt : Dose_common__Util.Warning.t
val warning : ('a, unit, string, unit) Stdlib.format4 -> 'a
val dt : Dose_common__Util.Debug.t
val debug : ('a, unit, string, unit) Stdlib.format4 -> 'a
val fatal : ('a, unit, string, 'b) Stdlib.format4 -> 'a
val blank_regexp : Pcre.regexp
val parse_inst : Stdlib.in_channel -> (string * string, unit) ExtLib.Hashtbl.t
val parse_inst_from_cmd : string -> (string * string, unit) ExtLib.Hashtbl.t
val parse_inst_from_file : string -> (string * string, unit) ExtLib.Hashtbl.t
val parse_popcon : string -> int * string * int
type apt_req =
  1. | Install of Dose_pef.Packages_types.vpkgreq list
  2. | Remove of Dose_pef.Packages_types.vpkgreq list
  3. | Upgrade of Dose_pef.Packages_types.suite option
  4. | DistUpgrade of Dose_pef.Packages_types.suite option
val parse_req : string -> string -> Dose_pef.Packages_types.vpkgreq
val parse_request_apt : string -> apt_req

parse a string containing an apt-get command line

  • returns

    a data structure containing the request

val parse_request_aptitude : string -> apt_req
module Pref : sig ... end

for details on the apt_preferences format : man apt_preferences

val comma_regexp : Pcre.regexp
val eq_regexp : Pcre.regexp
val di_regexp : Pcre.regexp
val al_regexp : Pcre.regexp
val parse_pref_labels : string -> (string * string) list
val general_regexp : Pcre.regexp
val parse_pref_package : ('a * ('b * string)) -> Pref.package_t
val pin_regexp : Pcre.regexp
val parse_pin : ('a * ('b * string)) -> Pref.pin_t
val parse_preferences_stanza : Dose_extra.Format822.stanza -> Pref.apt_preferences
val preferences_parser : (Dose_extra.Format822.stanza -> 'a) -> 'a list -> Dose_extra.Format822.f822_parser -> 'a list
val parse_preferences_in : IO.input -> Pref.apt_preferences list

parse the apt_preferences file

OCaml

Innovation. Community. Security.