PackageSack
Object Hierarchy:
Description:
Namespace: Pk
Package: packagekit-glib2
Content:
Creation methods:
- public PackageSack ()
Methods:
- public bool add_package (Package package)
Adds a package to the sack.
- public bool add_package_by_id (string package_id) throws Error
Adds a package reference to the sack.
- public bool add_packages_from_file (File file) throws Error
Adds packages from package-list file to a PackageSack .
- public virtual void changed ()
- public void clear ()
Empty all the packages from the sack
- public PackageSack filter (PackageSackFilterFunc filter_cb)
Returns a new package sack which only matches packages that return
true
from the filter function. - public PackageSack filter_by_info (Info info)
Returns a new package sack which only matches packages that match the specified info enum value.
- public Package find_by_id (string package_id)
Finds a package in a sack from reference.
- public Package find_by_id_name_arch (string package_id)
Finds a package in a sack by package name and architecture.
- public GenericArray<unowned Package> get_array ()
Gets the package array from the sack
- public bool get_details (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool get_details_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in details about packages.
- public string[] get_ids ()
Returns all the Package IDs in the sack
- public uint get_size ()
Gets the number of packages in the sack
- public uint64 get_total_bytes ()
Gets the total size of the package sack in bytes.
- public bool get_update_detail (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool get_update_detail_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in update details about packages.
- public bool remove_by_filter (PackageSackFilterFunc filter_cb)
Removes from the package sack any packages that return
false
from the filter function. - public bool remove_package (Package package)
Removes a package reference from the sack.
- public bool remove_package_by_id (string package_id)
Removes a package reference from the sack.
- public bool resolve (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool resolve_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in details about packages using resolve.
- public void sort (PackageSackSortType type)
Sorts the package sack
- public bool to_file (File file) throws Error
Write the contents of a PackageSack to a package-list file.
Inherited Members:
All known members inherited from class GLib.Object