Update Manager API: Application module
Application class and helpers
Classes
-
class UpdateManager.Application.Application(app_name, locale_dir, frontend, backend='PythonApt', dist_specific='Auto', app_args=[, '-b', 'html', '-d', 'build/doctrees', 'source', 'build/html'])
update-manager application.
-
abort_operation()
- Wrapper around the backend’s abort_operation method.
-
commit(selected_updates, writefd=None)
Wrapper around the backend’s commit method.
Parameters: |
- selected_updates – List of updates that were selected for upgrade
- writefd – FD package manager messages get written to,
may be None.
|
-
get_available_updates(dist_upgrade=True)
Wrapper around the backend’s get_available_updates method.
:param dist_upgrade: Defines whether to do a dist upgrade or not.
Changed in version 0.200.0~exp1.
-
get_bug_script_name()
- Wrapper around the dist-specific get_bug_script_name method.
-
get_changelog(pkg_info, changelog_handler)
- Wrapper around the dist-specific get_changelog method.
-
get_dist_name()
Wrapper around the dist-specific get_name method.
Returns: | The distribution’s name. |
-
get_option(option_name)
Gets the value of a commandline option/switch.
Parameter: | option_name – Option name |
Returns: | Value of option |
-
get_update_category(pkg_info)
Wrapper around the dist-specific get_update_category method.
-
get_update_category_name(cat_id)
Wrapper around the the dist-specific get_update_category_name
method.
Parameter: | cat_id – The update category’s id. |
Returns: | The localized update category name. |
-
is_locked(by_us=False)
Wrapper around the backend’s is_locked method.
Parameter: | by_us – Check if the lock is held by us. |
-
main()
- Initializes the frontend, reloads the package cache and
runs the frontend’s main loop.
-
reload_cache()
- Wrapper around the backend’s reload_cache method.
-
reload_package_list()
- Wrapper around the backend’s download_package_lists method.
-
set_option(option_name, value)
Sets the value of a commandline option/switch.
Parameters: |
- option_name – Option name
- value – New value for option
|
-
uses_privileged_functions()
Constants
-
UpdateManager.Application.DEFAULT_BACKEND
- Default backend module name
-
UpdateManager.Application.DEFAULT_DIST_SPECIFIC
- Default distribution specific module name