Dose_debian.Apt
Apt command line parsing
type apt_req =
| Install of Dose_pef.Packages_types.vpkgreq list |
| Remove of Dose_pef.Packages_types.vpkgreq list |
| Upgrade of Dose_pef.Packages_types.suite option |
| DistUpgrade of Dose_pef.Packages_types.suite option |
val parse_req : string -> string -> Dose_pef.Packages_types.vpkgreq
val parse_pkg_req : Dose_pef.Packages_types.suite option -> string -> Dose_pef.Packages_types.action option * ((string * Dose_pef.Packages_types.architecture option) * Dose_pef.Packages_types.constr option) * Dose_pef.Packages_types.suite option
val parse_request_apt : string -> apt_req
parse a string containing an apt-get command line
val parse_request_aptitude : string -> apt_req
module Pref : sig ... end
for details on the apt_preferences format : man apt_preferences
val parse_pref_package : ('a * ('b * string)) -> Pref.package_t
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