Up

module Packagekit

: sig

Interacting with distribution package managers via PackageKit. This is used to find uninstalled candidate packages.

#
type packagekit_id = string
#
type size = Int64.t
#
type package_info = {
# version
: Version.t;
# machine
: string option;
# installed
: bool;
# retrieval_method
: Impl.distro_retrieval_method;
}
#
class type ui =
#
method monitor : Downloader.download -> unit
#
method confirm : string -> [
| `ok
| `cancel
] Lwt.t
#
method impl_added_to_store : unit
#
type packagekit = < is_available : bool Lwt.t; get_impls : string -> package_info list; check_for_candidates : 'a . ui:(ui as 'a) -> hint:string -> string list -> unit Lwt.t; install_packages : 'a . (ui as 'a) -> (Impl.distro_implementation * Impl.distro_retrieval_method) list -> [
| `ok
| `cancel
] Lwt.t >
#
val packagekit : (General.config -> packagekit) Pervasives.ref

Create a packagekit object, which can be used to query the PackageKit D-BUS service for information about (uninstalled) candidate packages. (overridable for unit-tests)

end