Update Manager API: DistSpecific module

Interfaces

class UpdateManager.DistSpecific.DistBase(name=None, changelog_fetcher=None, distupgrade_check=False)

Base class for distribution specific functionality.

This class defines the API available to update-manager’s core.

Implementations must be subclasses of this base class.

classmethod fetch_dist_info()

Called only when hasDistUpgradeCheck returns True.

This method should do the actual check (MetaRelease functionality).

get_bug_script_name()

Optionally returns the name of a bug script to use for bug reporting.

get_changelog(pkg_info, changelog_handler)

Starts a changelog fetch thread and calls the given handler object accordingly.

Parameters:
get_name()

Returns the distribution name.

get_update_category(pkg_info)

Returns an update category ID for the package referred to by package_upd_info.

Parameters:pkg_infoUpdateManager.Backend.PackageInfoBase object.
Returns:Update category ID
get_update_category_name(update_category_id)

Returns an update category name for the update category id specified.

Parameters:update_category_id – Update category id
classmethod has_distupgrade_check()

Define whether this implementation can check for distribution upgrades (MetaRelease functionality).

Constants & Data

UpdateManager.DistSpecific.UPDATE_CATEGORY = <UpdateManager.Util.enum.Enum object at 0xa85f92c>

Enum:

SECURITY = 0

RECOMMENDED = 1

DEFAULT = 2

PROPOSED = 3

BACKPORT = 4

THIRDPARTY = 5

UpdateManager.DistSpecific.UPDATE_CATEGORY_MAP = {0: 'Important security updates', 1: 'Recommended updates', 2: 'Distribution updates', 3: 'Proposed updates', 4: 'Backports', 5: 'Third-party updates'}

A mapping of update category identifiers to their (localized) names. See UPDATE_CATEGORY for details.

Table Of Contents

Previous topic

Update Manager API: Config module

Next topic

Update Manager API: DistSpecific.Auto module

This Page