Enums

Details

class PackageKitGlib.AuthorizeEnum(value)

Bases: GObject.GEnum

The authorization result

UNKNOWN = 0

Unknown authorization status

YES = 1

Authorized

NO = 2

Not authorized

INTERACTIVE = 3

Interaction required for authorization

LAST = 4
class PackageKitGlib.ClientError(value)

Bases: GObject.GEnum

Errors that can be thrown

classmethod quark()
Returns:an error quark.
Return type:int

An error quark for PackageKitGlib.ClientError.

New in version 0.5.2.

FAILED = 0

the transaction failed for an unknown reason

FAILED_AUTH = 1

the transaction failed authentication/authorization

LAST = 10
NO_TID = 2

the transaction id was not pre-allocated (internal error)

ALREADY_TID = 3

the transaction id has already been used (internal error)

ROLE_UNKNOWN = 4

the role was not set (internal error)

CANNOT_START_DAEMON = 5

the PackageKit daemon failed to start

INVALID_INPUT = 6

the package_id is invalid

INVALID_FILE = 7

the file is invalid

NOT_SUPPORTED = 8

the action is not supported

DECLINED_SIMULATION = 9

the simulation was declined by the user

class PackageKitGlib.ControlError(value)

Bases: GObject.GEnum

Errors that can be thrown

classmethod quark()
Returns:Our personal error quark.
Return type:int

We are a GObject.Object that sets errors

New in version 0.5.2.

FAILED = 0

the transaction failed for an unknown reason

CANNOT_START_DAEMON = 1

the PackageKit daemon failed to start

class PackageKitGlib.DistroUpgradeEnum(value)

Bases: GObject.GEnum

The distro upgrade status

classmethod from_string(upgrade)
Parameters:upgrade (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.DistroUpgradeEnum.STABLE
Return type:PackageKitGlib.DistroUpgradeEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(upgrade)
Parameters:upgrade (PackageKitGlib.DistroUpgradeEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “stable”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown disto upgrade state

STABLE = 1

Upgraded to stable release

UNSTABLE = 2

Upgraded to unstable release

LAST = 3
class PackageKitGlib.ErrorEnum(value)

Bases: GObject.GEnum

The error type

classmethod from_string(code)
Parameters:code (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.ErrorEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(code)
Parameters:code (PackageKitGlib.ErrorEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0
OOM = 1

Out of memory

PACKAGE_DOWNLOAD_FAILED = 10

Failed to download package

GROUP_NOT_FOUND = 11

Requested group not gound

GROUP_LIST_INVALID = 12

Invalid group list provided

DEP_RESOLUTION_FAILED = 13

Failed to resolve dependencies

FILTER_INVALID = 14

Invalid filter provides

CREATE_THREAD_FAILED = 15

Failed to create thread

TRANSACTION_ERROR = 16

Error occurred during transaction

TRANSACTION_CANCELLED = 17

Transaction was cancelled

NO_CACHE = 18

No cache available

REPO_NOT_FOUND = 19

Requested repository not found

NO_NETWORK = 2

No network access available

CANNOT_REMOVE_SYSTEM_PACKAGE = 20

Not allowed to remove system package

PROCESS_KILL = 21

Process killed

FAILED_INITIALIZATION = 22
FAILED_FINALISE = 23
FAILED_CONFIG_PARSING = 24

Configuration is not valid

CANNOT_CANCEL = 25
CANNOT_GET_LOCK = 26

Cannot get lock

NO_PACKAGES_TO_UPDATE = 27

No packages to update

CANNOT_WRITE_REPO_CONFIG = 28

Cannot write repository configuration

LOCAL_INSTALL_FAILED = 29
NOT_SUPPORTED = 3

Request not supported

BAD_GPG_SIGNATURE = 30

Bad GPG signature found

MISSING_GPG_SIGNATURE = 31

Required GPG signature not found

CANNOT_INSTALL_SOURCE_PACKAGE = 32

Cannot install source package

REPO_CONFIGURATION_ERROR = 33
NO_LICENSE_AGREEMENT = 34
FILE_CONFLICTS = 35

File conflicts detected

PACKAGE_CONFLICTS = 36

Package conflict

REPO_NOT_AVAILABLE = 37

Repository not available

INVALID_PACKAGE_FILE = 38
PACKAGE_INSTALL_BLOCKED = 39

Package installation blocked

INTERNAL_ERROR = 4

Undefined internal error

PACKAGE_CORRUPT = 40

Package corruption occurred

ALL_PACKAGES_ALREADY_INSTALLED = 41

All packages already installed

FILE_NOT_FOUND = 42

Required file not found

NO_MORE_MIRRORS_TO_TRY = 43

Out of repository mirrors to try

NO_DISTRO_UPGRADE_DATA = 44

No distribution upgrade path found

INCOMPATIBLE_ARCHITECTURE = 45

Incompatible architecture found

NO_SPACE_ON_DEVICE = 46

Out of required disk space

MEDIA_CHANGE_REQUIRED = 47

Need to change media

NOT_AUTHORIZED = 48

Authorization failed

UPDATE_NOT_FOUND = 49

Update not found

GPG_FAILURE = 5

GPG encryption failure

CANNOT_INSTALL_REPO_UNSIGNED = 50

Installation repository missing signature

CANNOT_UPDATE_REPO_UNSIGNED = 51

Update repository missing signature

CANNOT_GET_FILELIST = 52

Cannot get file list

CANNOT_GET_REQUIRES = 53

Cannot get package requirements

CANNOT_DISABLE_REPOSITORY = 54

Cannot disable reposoitory

RESTRICTED_DOWNLOAD = 55
PACKAGE_FAILED_TO_CONFIGURE = 56

Package failed to configure

PACKAGE_FAILED_TO_BUILD = 57

Package failed to build

PACKAGE_FAILED_TO_INSTALL = 58

Package failed to install

PACKAGE_FAILED_TO_REMOVE = 59

Package failed to remove

PACKAGE_ID_INVALID = 6

Invalid package ID provided

UPDATE_FAILED_DUE_TO_RUNNING_PROCESS = 60
PACKAGE_DATABASE_CHANGED = 61
PROVIDE_TYPE_NOT_SUPPORTED = 62
INSTALL_ROOT_INVALID = 63

Installtion root not suitable

CANNOT_FETCH_SOURCES = 64

Cannot fetch sources

CANCELLED_PRIORITY = 65

Cancelled due to higher priority task

UNFINISHED_TRANSACTION = 66

Transaction unfinished

LOCK_REQUIRED = 67

Required lock not available

REPO_ALREADY_SET = 68
LAST = 69
PACKAGE_NOT_INSTALLED = 7

Requested package not installed

PACKAGE_NOT_FOUND = 8

Requested package not found

PACKAGE_ALREADY_INSTALLED = 9

Requested package already installed

class PackageKitGlib.ExitEnum(value)

Bases: GObject.GEnum

How the backend exited

classmethod from_string(exit)
Parameters:exit (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.ExitEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(exit)
Parameters:exit (PackageKitGlib.ExitEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown exit status

SUCCESS = 1

Backend exited successfully

SKIP_TRANSACTION = 10
REPAIR_REQUIRED = 11

Package database requires repairing

LAST = 12
FAILED = 2

Backend failed

CANCELLED = 3

Backend was cancelled

KEY_REQUIRED = 4

A repository encryption key needs installing

EULA_REQUIRED = 5

A EULA is required to be accepted

KILLED = 6

Backend was killed

MEDIA_CHANGE_REQUIRED = 7

Media change required

NEED_UNTRUSTED = 8
CANCELLED_PRIORITY = 9

Cancelled due to higher priority task

class PackageKitGlib.FilterEnum(value)

Bases: GObject.GEnum

The filter types

classmethod from_string(filter)
Parameters:filter (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.FilterEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(filter)
Parameters:filter (PackageKitGlib.FilterEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown filter

NONE = 1

No filter

VISIBLE = 10

Filter for visible packages

NOT_VISIBLE = 11

Filter for invisible packages

SUPPORTED = 12

Filter for supported packages

NOT_SUPPORTED = 13

Filter for not supported packages

BASENAME = 14

Filter for packages that match basename

NOT_BASENAME = 15

Filter for packages that don’t match basename

NEWEST = 16

Filter for newest packages

NOT_NEWEST = 17

Filter for not newest packages

ARCH = 18

Filter for packages that match architecture

NOT_ARCH = 19

Filter for packages that don’t match architecture

INSTALLED = 2

Filter for installed packages

SOURCE = 20

Filter for source packages

NOT_SOURCE = 21

Filter for non-source packages

COLLECTIONS = 22

Filter for collections

NOT_COLLECTIONS = 23

Filter for not collections

APPLICATION = 24

Filter for application packages

NOT_APPLICATION = 25

Filter for non-application packages

DOWNLOADED = 26

Filter for downloaded packages

NOT_DOWNLOADED = 27

Filter for not downloaded packages

LAST = 28
NOT_INSTALLED = 3

Filter for not installed packages

DEVELOPMENT = 4

Filter for development packages

NOT_DEVELOPMENT = 5

Filter for non-development packages

GUI = 6

Filter for GUI packages

NOT_GUI = 7

Filter for non-GUI packages

FREE = 8

Filter for free packages

NOT_FREE = 9

Filter for non-free packages

class PackageKitGlib.GroupEnum(value)

Bases: GObject.GEnum

The group type

classmethod from_string(group)
Parameters:group (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.GroupEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(group)
Parameters:group (PackageKitGlib.GroupEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown group

ACCESSIBILITY = 1

Accessibility related packages

FONTS = 10

Fonts

GAMES = 11

Games

GRAPHICS = 12

Graphics related packages

INTERNET = 13

Internet related packages

LEGACY = 14

Legacy packages

LOCALIZATION = 15

Localization related packages

MAPS = 16

Map related packages

MULTIMEDIA = 17

Multimedia packages

NETWORK = 18

Network related packages

OFFICE = 19

Office packages

ACCESSORIES = 2

Accessory packages

OTHER = 20
POWER_MANAGEMENT = 21

Power-management related packages

PROGRAMMING = 22

Programming packages

PUBLISHING = 23

Publishing related packages

REPOS = 24
SECURITY = 25

Security packages

SERVERS = 26

Server related packages

SYSTEM = 27

System packages

VIRTUALIZATION = 28

Virtualization packages

SCIENCE = 29

Science related packages

ADMIN_TOOLS = 3

Administration tools packages

DOCUMENTATION = 30

Documentation

ELECTRONICS = 31

Electronics package

COLLECTIONS = 32
VENDOR = 33

Vendor defined group

NEWEST = 34

Special group for recently updated packages

LAST = 35
COMMUNICATION = 4

Communication packages

DESKTOP_GNOME = 5

GNOME packages

DESKTOP_KDE = 6

KDE packages

DESKTOP_OTHER = 7

Other desktop packages

DESKTOP_XFCE = 8

XFCE packages

EDUCATION = 9

Education packages

class PackageKitGlib.InfoEnum(value)

Bases: GObject.GEnum

The enumerated types used in Package() - these have to refer to a specific package action, rather than a general state

classmethod from_string(info)
Parameters:info (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.InfoEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_localised_past(info)
Parameters:info (PackageKitGlib.InfoEnum) – The enumerated type value
Returns:the translated text
Return type:str

Converts a enumerated type to its localized description

New in version 0.7.2.

classmethod to_localised_present(info)
Parameters:info (PackageKitGlib.InfoEnum) – The enumerated type value
Returns:the translated text
Return type:str

Converts a enumerated type to its localized description

New in version 0.7.2.

classmethod to_string(info)
Parameters:info (PackageKitGlib.InfoEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Package status is unknown

INSTALLED = 1

Package is installed

DOWNLOADING = 10

Package is downloading

UPDATING = 11

Package is updating

INSTALLING = 12

Package is being installed

REMOVING = 13

Package is being removed

CLEANUP = 14

Package is running cleanup

OBSOLETING = 15
COLLECTION_INSTALLED = 16
COLLECTION_AVAILABLE = 17
FINISHED = 18
REINSTALLING = 19

Package is being reinstalled

AVAILABLE = 2

Package is available to be installed

DOWNGRADING = 20

Package is being downgraded

PREPARING = 21

Package is preparing for installation/removal

DECOMPRESSING = 22

Package is decompressing

UNTRUSTED = 23
TRUSTED = 24
UNAVAILABLE = 25

Package is unavailable

LAST = 26
LOW = 3
ENHANCEMENT = 4
NORMAL = 5
BUGFIX = 6
IMPORTANT = 7
SECURITY = 8
BLOCKED = 9

Package is blocked

class PackageKitGlib.MediaTypeEnum(value)

Bases: GObject.GEnum

The media type

classmethod from_string(media_type)
Parameters:media_type (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.MediaTypeEnum.CD
Return type:PackageKitGlib.MediaTypeEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(media_type)
Parameters:media_type (PackageKitGlib.MediaTypeEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “dvd”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown media type

CD = 1

Media is a CD

DVD = 2

Media is a DVD

DISC = 3

Media is a disc (not CD or DVD)

LAST = 4
class PackageKitGlib.NetworkEnum(value)

Bases: GObject.GEnum

Network type

classmethod from_string(network)
Parameters:network (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.NetworkEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(network)
Parameters:network (PackageKitGlib.NetworkEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown network

OFFLINE = 1

Offline (no network)

ONLINE = 2

Online (network type unknown)

WIRED = 3

Wired network

WIFI = 4

WiFi network

MOBILE = 5

Mobile network

LAST = 6
class PackageKitGlib.OfflineAction(value)

Bases: GObject.GEnum

Actions that can be taken after an offline operation.

classmethod from_string(action)
Parameters:action (str) – a string representation of a PackageKitGlib.OfflineAction, e.g. “reboot”
Returns:A PackageKitGlib.OfflineAction, or PackageKitGlib.OfflineAction.UNKNOWN for invalid
Return type:PackageKitGlib.OfflineAction

Converts the string to the enumerated value.

New in version 0.9.6.

classmethod to_string(action)
Parameters:action (PackageKitGlib.OfflineAction) – a PackageKitGlib.OfflineAction, e.g. PackageKitGlib.OfflineAction.REBOOT
Returns:string value, or None for invalid
Return type:str

Converts the enumerated value to a string.

New in version 0.9.6.

UNKNOWN = 0

Unknown

REBOOT = 1

Reboot

POWER_OFF = 2

Power-off

UNSET = 3

No action set

LAST = 4
class PackageKitGlib.OfflineError(value)

Bases: GObject.GEnum

Errors that can be thrown

classmethod quark()
Returns:an error quark.
Return type:int

An error quark for PackageKitGlib.OfflineError.

New in version 0.9.6.

FAILED = 0

No specific reason

INVALID_VALUE = 1

An invalid value was specified

NO_DATA = 2

No data was available

LAST = 3
class PackageKitGlib.PackageSackSortType(value)

Bases: GObject.GEnum

Type of sort to perform.

NAME = 0

Sort by name

INFO = 1

Sort by package info

PACKAGE_ID = 2

Sort by package ID

SUMMARY = 3

Sort by summary

LAST = 4
class PackageKitGlib.ProgressType(value)

Bases: GObject.GEnum

Flag to show which progress field has been updated.

PACKAGE_ID = 0

package id updated

TRANSACTION_ID = 1

transaction ID updated

DOWNLOAD_SIZE_REMAINING = 10

download size remaining updated

UID = 11

uid updated

PACKAGE = 12

package updated

ITEM_PROGRESS = 13

item progress updated

TRANSACTION_FLAGS = 14

transaction flags updated

INVALID = 15
PERCENTAGE = 2

percentage updated

ALLOW_CANCEL = 3

allow cancel updated

STATUS = 4

status updated

ROLE = 5

role updated

CALLER_ACTIVE = 6

called active updated

ELAPSED_TIME = 7

elapsed time updated

REMAINING_TIME = 8

remaining time updated

SPEED = 9

speed updated

class PackageKitGlib.RestartEnum(value)

Bases: GObject.GEnum

What restart we need to after a transaction, ordered by severity

classmethod from_string(restart)
Parameters:restart (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.RestartEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(restart)
Parameters:restart (PackageKitGlib.RestartEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown restart state

NONE = 1

No restart required

APPLICATION = 2

Need to restart the application

SESSION = 3

Need to restart the session

SYSTEM = 4

Need to restart the system

SECURITY_SESSION = 5
SECURITY_SYSTEM = 6
LAST = 7
class PackageKitGlib.RoleEnum(value)

Bases: GObject.GEnum

What we were asked to do, this never changes for the lifetime of the transaction. Icons that have to represent the whole “aim” of the transaction will use these constants

classmethod from_string(role)
Parameters:role (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.RoleEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_localised_present(role)
Parameters:role (PackageKitGlib.RoleEnum) – The enumerated type value
Returns:the translated text
Return type:str

Converts a enumerated type to its localized description

New in version 0.7.2.

classmethod to_string(role)
Parameters:role (PackageKitGlib.RoleEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknow request

CANCEL = 1

Cancel transaction

INSTALL_FILES = 10

Install package files

INSTALL_PACKAGES = 11

Install packages

INSTALL_SIGNATURE = 12

Install signature

REFRESH_CACHE = 13

Refresh cache

REMOVE_PACKAGES = 14

Remove packages

REPO_ENABLE = 15

Enable repository

REPO_SET_DATA = 16
RESOLVE = 17

Resolve depdencies

SEARCH_DETAILS = 18

Search for details

SEARCH_FILE = 19

Search for file

DEPENDS_ON = 2

Get package dependencies

SEARCH_GROUP = 20

Search for group

SEARCH_NAME = 21

Search for package name

UPDATE_PACKAGES = 22

Update packages

WHAT_PROVIDES = 23

Get what a package provides

ACCEPT_EULA = 24

Accept an EULA

DOWNLOAD_PACKAGES = 25

Download packages

GET_DISTRO_UPGRADES = 26

Get available distribution upgrades

GET_CATEGORIES = 27

Get available categories

GET_OLD_TRANSACTIONS = 28

Get old transation information

REPAIR_SYSTEM = 29

Repair system

GET_DETAILS = 3

Get package details

GET_DETAILS_LOCAL = 30

Get details on local package

GET_FILES_LOCAL = 31

Get files provided by local package

REPO_REMOVE = 32

Remove repository

UPGRADE_SYSTEM = 33

Upgrade system

LAST = 34
GET_FILES = 4
GET_PACKAGES = 5

Get available packages

GET_REPO_LIST = 6

Get repository list

REQUIRED_BY = 7

Get packages required by given package

GET_UPDATE_DETAIL = 8

Get update details

GET_UPDATES = 9

Get available updates

class PackageKitGlib.SigTypeEnum(value)

Bases: GObject.GEnum

The signature type type

classmethod from_string(sig_type)
Parameters:sig_type (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.SigTypeEnum

Converts a text enumerated type to its unsigned integer representation

classmethod to_string(sig_type)
Parameters:sig_type (PackageKitGlib.SigTypeEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unkwown signature type

GPG = 1

GPG signature

LAST = 2
class PackageKitGlib.StatusEnum(value)

Bases: GObject.GEnum

What status we are now; this can change for each transaction giving a status of what sort of thing is happening Icons that change to represent the current status of the transaction will use these constants If you add to these, make sure you add filenames in gpk-watch.c also

A typical transaction will do:

  • schedule task WAIT
  • run task SETUP
  • wait for lock RUNNING

This means that backends should run pk_backend_set_status (backend, PackageKitGlib.StatusEnum.RUNNING) when they are ready to start running the transaction and after a lock has been got.

classmethod from_string(status)
Parameters:status (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.SigTypeEnum.GPG
Return type:PackageKitGlib.StatusEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_localised_text(status)
Parameters:status (PackageKitGlib.StatusEnum) –
Return type:str
classmethod to_string(status)
Parameters:status (PackageKitGlib.StatusEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “available”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Unknown status

WAIT = 1

Waiting

UPDATE = 10

Updating

CLEANUP = 11

Cleaning up

OBSOLETE = 12
DEP_RESOLVE = 13

Resolving dependencies

SIG_CHECK = 14

Checking signatures

TEST_COMMIT = 15

Testing commit

COMMIT = 16

Committing

REQUEST = 17
FINISHED = 18

Finished

CANCEL = 19

Cancelling

SETUP = 2

Setting up

DOWNLOAD_REPOSITORY = 20

Downloading respository

DOWNLOAD_PACKAGELIST = 21

Donwloading package list

DOWNLOAD_FILELIST = 22

Downloading file list

DOWNLOAD_CHANGELOG = 23

Downloading changelog information

DOWNLOAD_GROUP = 24

Downloading group information

DOWNLOAD_UPDATEINFO = 25

Downloading update information

REPACKAGING = 26

Repackaging

LOADING_CACHE = 27

Loading cache

SCAN_APPLICATIONS = 28

Scanning for applications

GENERATE_PACKAGE_LIST = 29

Generating package list

RUNNING = 3

Running

WAITING_FOR_LOCK = 30

Waiting for lock

WAITING_FOR_AUTH = 31

Waiting for authentication/authorization

SCAN_PROCESS_LIST = 32

Scanning running processes

CHECK_EXECUTABLE_FILES = 33

Checking executable files

CHECK_LIBRARIES = 34

Checking libraries

COPY_FILES = 35

Copying files

RUN_HOOK = 36

Running package hook

LAST = 37
QUERY = 4
INFO = 5
REMOVE = 6

Removing

REFRESH_CACHE = 7

Refreshing cache

DOWNLOAD = 8

Downloading

INSTALL = 9

Installing

class PackageKitGlib.TransactionFlagEnum(value)

Bases: GObject.GEnum

The transaction flags that alter how the transaction is handled

classmethod from_string(transaction_flag)
Parameters:transaction_flag (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.TransactionFlagEnum.SIMULATE
Return type:PackageKitGlib.TransactionFlagEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.8.1.

classmethod to_string(transaction_flag)
Parameters:transaction_flag (PackageKitGlib.TransactionFlagEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “simulate”
Return type:str

Converts a enumerated type to its text representation

New in version 0.8.1.

NONE = 0

No transaction flag

ONLY_TRUSTED = 1

Only allow trusted packages

SIMULATE = 2

Simulate transaction

ONLY_DOWNLOAD = 3

Only download packages

ALLOW_REINSTALL = 4

Allow package reinstallation

JUST_REINSTALL = 5

Only allow package reinstallation

ALLOW_DOWNGRADE = 6

Allow packages to be downgraded

LAST = 7
class PackageKitGlib.UpdateStateEnum(value)

Bases: GObject.GEnum

What state the update is in

classmethod from_string(update_state)
Parameters:update_state (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.UpdateStateEnum.STABLE
Return type:PackageKitGlib.UpdateStateEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.5.0.

classmethod to_string(update_state)
Parameters:update_state (PackageKitGlib.UpdateStateEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “testing”
Return type:str

Converts a enumerated type to its text representation

New in version 0.5.0.

UNKNOWN = 0

Update stability unknown

STABLE = 1

Update is a stable release

UNSTABLE = 2

Update is an unstable release

TESTING = 3

Update is a testing release

LAST = 4
class PackageKitGlib.UpgradeKindEnum(value)

Bases: GObject.GEnum

The type of distribution upgrade to perform

classmethod from_string(upgrade_kind)
Parameters:upgrade_kind (str) – Text describing the enumerated type
Returns:the enumerated constant value, e.g. PackageKitGlib.UpgradeKindEnum.MINIMAL
Return type:PackageKitGlib.UpgradeKindEnum

Converts a text enumerated type to its unsigned integer representation

New in version 0.6.11.

classmethod to_string(upgrade_kind)
Parameters:upgrade_kind (PackageKitGlib.UpgradeKindEnum) – The enumerated type value
Returns:the enumerated constant value, e.g. “minimal”
Return type:str

Converts a enumerated type to its text representation

New in version 0.6.11.

UNKNOWN = 0
MINIMAL = 1

Perform minimal upgrade

DEFAULT = 2

Perform default upgrade

COMPLETE = 3

Perform complete upgrade

LAST = 4