InstalledRef

class InstalledRef(**properties: Any)

Superclasses: Ref, Object

Constructors:

InstalledRef(**properties)

Methods

class InstalledRef
get_appdata_content_rating() dict[str, str] | None

Returns the content rating field from the appdata. This is a potentially empty mapping of content rating attribute IDs to values, to be interpreted by the semantics of the content rating type (see get_appdata_content_rating_type()).

Added in version 1.4.2.

get_appdata_content_rating_type() str | None

Returns the content rating type from the appdata. For example, oars-1.0 or oars-1.1.

Added in version 1.4.2.

get_appdata_license() str

Returns the license field from the appdata.

Added in version 1.1.2.

get_appdata_name() str

Returns the name field from the appdata.

The returned string is localized.

Added in version 1.1.2.

get_appdata_summary() str

Returns the summary field from the appdata.

The returned string is localized.

Added in version 1.1.2.

get_appdata_version() str

Returns the default version field from the appdata.

Added in version 1.1.2.

get_deploy_dir() str

Gets the deploy dir of the ref.

get_eol() str

Returns the end-of-life reason string, or None if the ref is not end-of-lifed.

get_eol_rebase() str

Returns the end-of-life rebased ref, or None if the ref is not end-of-lifed.

get_installed_size() int

Returns the installed size of the ref.

get_is_current() bool

Returns whether the ref is current.

get_latest_commit() str | None

Gets the latest commit of the ref.

get_origin() str

Gets the origin of the ref.

get_subpaths() list[str]

Returns the subpaths that are installed, or None if all files installed.

load_appdata(cancellable: Cancellable | None = None) Bytes

Loads the compressed xml appdata for this ref (if it exists).

Added in version 1.1.2.

Parameters:

cancellable – a Cancellable

load_metadata(cancellable: Cancellable | None = None) Bytes

Loads the metadata file for this ref.

Parameters:

cancellable – a Cancellable

Properties

class InstalledRef
props.appdata_content_rating: dict[None, None]
props.appdata_content_rating_type: str
props.appdata_license: str
props.appdata_name: str
props.appdata_summary: str
props.appdata_version: str
props.deploy_dir: str
props.end_of_life: str
props.end_of_life_rebase: str
props.installed_size: int
props.is_current: bool
props.latest_commit: str
props.origin: str
props.subpaths: Sequence[str]

Fields

class InstalledRef
parent