PackageKitGlib.Task¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class PackageKitGlib.Task(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
PackageKitGlib.Task
object.- Return type:
New in version 0.5.2.
- depends_on_async(filters, package_ids, recursive, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultspackage_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool
) – if we should recurse to packages that depend on other packagescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Get the list of dependant packages.
New in version 0.6.5.
- depends_on_sync(filters, package_ids, recursive, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultspackage_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool
) – if we should recurse to packages that depend on other packagescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Get the list of dependent packages.
New in version 0.6.5.
- download_packages_async(package_ids, directory, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”directory (
str
) – the destination directorycancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Downloads packages
New in version 0.6.5.
- download_packages_sync(package_ids, directory, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”directory (
str
) – the destination directorycancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Downloads packages
New in version 0.6.5.
- generic_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
The
PackageKitGlib.Results
of the transaction.- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_allow_downgrade()¶
-
Gets if we are allow packages to be downgraded.
New in version 1.0.2.
- get_allow_reinstall()¶
-
Gets if we allow packages to be reinstalled.
New in version 1.0.2.
- get_categories_async(cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Get the categories available.
New in version 0.6.5.
- get_categories_sync(cancellable, progress_callback, *progress_user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Get the categories available.
New in version 0.6.5.
- get_details_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets details about packages.
New in version 0.6.5.
- get_details_sync(package_ids, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Gets details about packages.
New in version 0.6.5.
- get_files_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Get the files in a package.
New in version 0.6.5.
- get_files_sync(package_ids, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Get the files in a package.
New in version 0.6.5.
- get_only_download()¶
-
Gets if we are just preparing the transaction for later.
New in version 0.8.1.
- get_only_trusted()¶
-
Gets if we allow only authenticated packages in the transactoin.
New in version 0.9.5.
- get_packages_async(filters, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultscancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets the list of packages.
New in version 0.6.5.
- get_packages_sync(filters, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultscancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Gets the list of packages.
New in version 0.6.5.
- get_repo_list_async(filters, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultscancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Get the list of available repositories.
New in version 0.6.5.
- get_repo_list_sync(filters, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultscancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Get the list of available repositories.
New in version 0.6.5.
- get_simulate()¶
-
Gets if we are simulating.
New in version 0.6.10.
- get_update_detail_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets details about updates.
New in version 0.6.5.
- get_update_detail_sync(package_ids, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Gets details about updates.
New in version 0.6.5.
- get_updates_async(filters, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultscancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets the update lists.
New in version 0.6.5.
- get_updates_sync(filters, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultscancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Gets the update lists.
New in version 0.6.5.
- install_files_async(files, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
files ([
str
]) – a file such as “/home/hughsie/Desktop/hal-devel-0.10.0.rpm”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completionuser_data (
object
orNone
) – the data to pass to callback_ready
Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.
New in version 0.5.2.
- install_files_sync(files, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
files ([
str
]) – a file such as “/home/hughsie/Desktop/hal-devel-0.10.0.rpm”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- install_packages_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Merges in details about packages using resolve.
New in version 0.5.2.
- install_packages_sync(package_ids, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Install a package of the newest and most correct version.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- refresh_cache_async(force, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
force (
bool
) – if the metadata should be deleted and re-downloaded even if it is correctcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Refresh the package cache.
New in version 0.6.5.
- refresh_cache_sync(force, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
force (
bool
) – if the metadata should be deleted and re-downloaded even if it is correctcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Refresh the package cache.
New in version 0.6.5.
- remove_packages_async(package_ids, allow_deps, autoremove, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”allow_deps (
bool
) – if other dependent packages are allowed to be removed from the computerautoremove (
bool
) – if other packages installed at the same time should be tried to removecancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completionuser_data (
object
orNone
) – the data to pass to callback_ready
Remove a package (optionally with dependancies) from the system. If allow_deps is set to
False
, and other packages would have to be removed, then the transaction would fail.New in version 0.5.2.
- remove_packages_sync(package_ids, allow_deps, autoremove, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”allow_deps (
bool
) – if other dependent packages are allowed to be removed from the computerautoremove (
bool
) – if other packages installed at the same time should be tried to removecancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Remove a package (optionally with dependancies) from the system. If allow_deps is set to
False
, and other packages would have to be removed, then the transaction would fail.Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- repair_system_async(cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completionuser_data (
object
orNone
) – the data to pass to callback_ready
Recover the system from broken dependencies and aborted installations.
New in version 0.7.2.
- repair_system_sync(cancellable, progress_callback, *progress_user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Recover from broken dependencies of installed packages or incomplete installations.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.7.2.
- repo_enable_async(repo_id, enabled, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
repo_id (
str
) – The software repository IDcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Enable or disable a specific repo.
New in version 0.6.5.
- repo_enable_sync(repo_id, enabled, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
repo_id (
str
) – The software repository IDcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Enable or disable a specific repo.
New in version 0.6.5.
- required_by_async(filters, package_ids, recursive, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultspackage_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool
) – if we should return packages that depend on the ones we docancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Get the packages this package requires.
New in version 0.6.5.
- required_by_sync(filters, package_ids, recursive, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultspackage_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool
) – if we should return packages that depend on the ones we docancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Get the packages this package requires.
New in version 0.6.5.
- resolve_async(filters, packages, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultspackages ([
str
]) – package names to findcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Resolves a package name to a package-id.
New in version 0.6.5.
- resolve_sync(filters, packages, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultspackages ([
str
]) – package names to findcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Resolves a package name to a package-id.
New in version 0.6.5.
- search_details_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Searches for some package details.
New in version 0.6.5.
- search_details_sync(filters, values, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Searches for some package details.
New in version 0.6.5.
- search_files_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Searches for specific files.
New in version 0.6.5.
- search_files_sync(filters, values, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Searches for specific files.
New in version 0.6.5.
- search_groups_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Searches the group lists.
New in version 0.6.5.
- search_groups_sync(filters, values, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Searches the group lists.
New in version 0.6.5.
- search_names_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Searches for a package name.
New in version 0.6.5.
- search_names_sync(filters, values, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – search valuescancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Searches for a package name.
New in version 0.6.5.
- set_allow_downgrade(allow_downgrade)¶
-
If package downgrades shall be allowed during transaction.
New in version 1.0.2.
- set_allow_reinstall(allow_reinstall)¶
-
If package reinstallation shall be allowed during transaction.
New in version 1.0.2.
- set_only_download(only_download)¶
-
If the transaction should be prepared (depsolved, packages downloaded, etc) but not committed.
New in version 0.8.1.
- set_only_trusted(only_trusted)¶
-
If only authenticated packages should be allowed in the transaction.
New in version 0.9.5.
- set_simulate(simulate)¶
- Parameters:
simulate (
bool
) – the simulate mode
If the simulate step should be run without the actual transaction.
New in version 0.6.10.
- update_packages_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completionuser_data (
object
orNone
) – the data to pass to callback_ready
Update specific packages to the newest available versions.
New in version 0.5.2.
- update_packages_sync(package_ids, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
package_ids ([
str
]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Update specific packages to the newest available versions.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- upgrade_system_async(distro_id, upgrade_kind, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
distro_id (
str
) – a distro ID such as “fedora-14”upgrade_kind (
PackageKitGlib.UpgradeKindEnum
) – aPackageKitGlib.UpgradeKindEnum
such asPackageKitGlib.UpgradeKindEnum.COMPLETE
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completionuser_data (
object
orNone
) – the data to pass to callback_ready
This transaction will update the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.
The backend will decide what is best to do.
New in version 1.0.12.
- upgrade_system_sync(distro_id, upgrade_kind, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
distro_id (
str
) – a distro ID such as “fedora-14”upgrade_kind (
PackageKitGlib.UpgradeKindEnum
) – aPackageKitGlib.UpgradeKindEnum
such asPackageKitGlib.UpgradeKindEnum.COMPLETE
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
This transaction will update the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.
The backend will decide what is best to do.
New in version 1.0.12.
- user_accepted(request)¶
-
Mark a EULA as accepted by the user.
New in version 0.5.2.
- user_declined(request)¶
-
Mark a EULA as declined by the user.
New in version 0.5.2.
- what_provides_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – values to search forcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Find the package that provides some resource.
New in version 0.6.5.
- what_provides_sync(filters, values, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
filters (
int
) – a bitfield of filters that can be used to limit the resultsvalues ([
str
]) – values to search forcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
progress_callback (
PackageKitGlib.ProgressCallback
) – the function to run when the progress changesprogress_user_data (
object
orNone
) – data to pass to progress_callback
- Raises:
- Returns:
a
PackageKitGlib.Results
object, orNone
for error- Return type:
Find the package that provides some resource.
New in version 0.6.5.
- do_eula_question(request, results) virtual¶
- Parameters:
request (
int
) –results (
PackageKitGlib.Results
) –
- do_key_question(request, results) virtual¶
- Parameters:
request (
int
) –results (
PackageKitGlib.Results
) –
- do_media_change_question(request, results) virtual¶
- Parameters:
request (
int
) –results (
PackageKitGlib.Results
) –
- do_repair_question(request, results) virtual¶
- Parameters:
request (
int
) –results (
PackageKitGlib.Results
) –
- do_simulate_question(request, results) virtual¶
- Parameters:
request (
int
) –results (
PackageKitGlib.Results
) –
- do_untrusted_question(request, results) virtual¶
- Parameters:
request (
int
) –results (
PackageKitGlib.Results
) –
Property Details¶
- PackageKitGlib.Task.props.allow_downgrade¶
-
True
if package downgrades are allowed.New in version 1.0.2.
- PackageKitGlib.Task.props.allow_reinstall¶
-
True
if package reinstallation shall be allowed during transaction.New in version 1.0.2.
- PackageKitGlib.Task.props.only_download¶
-
True
if we are just preparing the transaction for later.New in version 0.8.1.