PackageKitGlib.Package¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The package description |
||
r/w |
The package group |
||
r/w |
The |
||
r/w |
The package license |
||
r |
The full package_id, e.g. ‘gnome-power-manager;0.1.2;i386;fedora’ |
||
r/w |
The package size |
||
r/w |
The package summary |
||
[ |
r/w |
The update bugzilla URLs |
|
r/w |
The update ChangeLog |
||
[ |
r/w |
The update CVE URLs |
|
r/w |
When the update was issued |
||
r/w |
The update packages that are obsoleted |
||
r/w |
The update restart type |
||
r/w/en |
Package update severity |
||
r/w |
The update state |
||
r/w |
The update description |
||
r/w |
When the update was last updated |
||
r/w |
The update packages |
||
[ |
r/w |
The update vendor URLs |
|
r/w |
The package homepage URL |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class PackageKitGlib.Package(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod id_build(name, version, arch, data)¶
- Parameters:
- Returns:
returns a string to form the PackageID.
- Return type:
Generate a PackageID.
Added in version 0.5.0.
- classmethod id_check(package_id)¶
- Parameters:
package_id (
str) – the PackageID to check- Returns:
Trueif the PackageID was well formed.- Return type:
Check if a Packageid is well formed.
Added in version 0.5.0.
- classmethod id_equal_fuzzy_arch(package_id1, package_id2)¶
- Parameters:
- Returns:
Trueif the PackageIDs can be considered equal.- Return type:
Only compare the name, version, and arch, where the architecture will fuzzy match with i*86.
Added in version 0.5.0.
- classmethod id_split(package_id)¶
- Parameters:
package_id (
str) – the ; delimited PackageID to split- Returns:
a GStrv or
Noneif invalid, useGLib.strfreev() to free- Return type:
[
str]
Splits a PackageID into the correct number of parts, checking the correct number of delimiters are present.
Added in version 0.5.3.
- classmethod id_to_printable(package_id)¶
- Parameters:
package_id (
str) – the PackageID- Returns:
the name-version.arch formatted string, use
GLib.free() to free.- Return type:
Formats the PackageID to be printable to the user.
Added in version 0.5.2.
- classmethod ids_add_id(package_ids, package_id)¶
- Parameters:
- Returns:
the new list, free
GLib.strfreev()- Return type:
[
str]
Adds a package_id to an existing list.
Added in version 0.5.2.
- classmethod ids_add_ids(package_ids, package_ids_new)¶
- Parameters:
- Returns:
the new list, free
GLib.strfreev()- Return type:
[
str]
Adds a package_id to an existing list.
Added in version 0.5.2.
- classmethod ids_check(package_ids)¶
- Parameters:
package_ids (
str) – a string array of package_id’s- Returns:
Trueif the package_ids are all valid.- Return type:
Check the string array of package_id’s for validity
Added in version 0.5.2.
- classmethod ids_from_id(package_id)¶
- Parameters:
package_id (
str) – A single package_id- Returns:
the string array, or
Noneif invalid, free withGLib.strfreev()- Return type:
[
str]
Form a composite string array of package_id’s from a single package_id
Added in version 0.5.2.
- classmethod ids_from_string(package_id)¶
- Parameters:
package_id (
str) – A single package_id- Returns:
the string array, or
Noneif invalid, free withGLib.strfreev()- Return type:
[
str]
Form a composite string array of package_id’s from a delimited string
Added in version 0.5.2.
- classmethod ids_present_id(package_ids, package_id)¶
- Parameters:
- Returns:
Trueif the package ID is present- Return type:
Finds out if a package ID is present in the list.
Added in version 0.5.2.
- classmethod ids_remove_id(package_ids, package_id)¶
- Parameters:
- Returns:
the new list, free
GLib.strfreev()- Return type:
[
str]
Removes a package ID from the the list.
Added in version 0.5.2.
- classmethod ids_to_string(package_ids)¶
- Parameters:
package_ids (
str) – a string array of package_id’s- Returns:
a string representation of all the package_id’s.
- Return type:
Cats the string array of package_id’s into one delimited string
Added in version 0.5.2.
- classmethod new()¶
- Returns:
a new
PackageKitGlib.Packageobject.- Return type:
Added in version 0.5.4.
- equal(package2)¶
- Parameters:
package2 (
PackageKitGlib.Package) – a validPackageKitGlib.Packageinstance- Returns:
Trueif the packages have the same package_id, info and summary.- Return type:
Do the
PackageKitGlib.Package's have the same ID.Added in version 0.5.4.
- equal_id(package2)¶
- Parameters:
package2 (
PackageKitGlib.Package) – a validPackageKitGlib.Packageinstance- Returns:
Trueif the packages have the same package_id.- Return type:
Do the
PackageKitGlib.Package's have the same ID.Added in version 0.5.4.
- get_arch()¶
-
Gets the package arch.
Added in version 0.6.4.
- get_data()¶
-
Gets the package data, which is usually the repository ID that contains the package. Special ID’s include “installed” for installed packages, and “local” for local packages that exist on disk but not in a repository.
Added in version 0.6.4.
- get_id()¶
-
Gets the package object ID
Added in version 0.5.4.
- get_info()¶
- Returns:
- Return type:
Gets the package object ID
Added in version 0.5.4.
- get_name()¶
-
Gets the package name.
Added in version 0.6.4.
- get_summary()¶
-
Gets the package object ID
Added in version 0.5.4.
- get_update_severity()¶
- Returns:
the self update severity, if known.
- Return type:
Returns the self update severity. Can be one of
PackageKitGlib.InfoEnum.UNKNOWN,PackageKitGlib.InfoEnum.LOW,PackageKitGlib.InfoEnum.ENHANCEMENT,PackageKitGlib.InfoEnum.NORMAL,PackageKitGlib.InfoEnum.BUGFIX,PackageKitGlib.InfoEnum.IMPORTANT,PackageKitGlib.InfoEnum.SECURITYorPackageKitGlib.InfoEnum.CRITICAL.Added in version 1.2.4.
- get_version()¶
-
Gets the package version.
Added in version 0.6.4.
- parse(data)¶
- Parameters:
data (
str) – the data describing the package- Raises:
- Returns:
Trueif the data was parsed correctly- Return type:
Parses the data to populate the
PackageKitGlib.Package.Added in version 0.8.11.
- print_()¶
Prints details about the package to standard out.
Added in version 0.5.4.
- set_id(package_id)¶
- Parameters:
package_id (
str) – the valid package_id- Raises:
- Returns:
Trueif the package_id was set- Return type:
Sets the package object to have the given ID
Added in version 0.5.4.
- set_info(info)¶
- Parameters:
info (
PackageKitGlib.InfoEnum) – thePackageKitGlib.InfoEnum
Sets the package info enum.
Added in version 0.8.14.
- set_summary(summary)¶
- Parameters:
summary (
str) – the package summary
Sets the package summary.
Added in version 0.8.14.
- set_update_severity(update_severity)¶
- Parameters:
update_severity (
PackageKitGlib.InfoEnum) – aPackageKitGlib.InfoEnum
Set an update severity for the self. The update_severity can be one of
PackageKitGlib.InfoEnum.UNKNOWN,PackageKitGlib.InfoEnum.LOW,PackageKitGlib.InfoEnum.ENHANCEMENT,PackageKitGlib.InfoEnum.NORMAL,PackageKitGlib.InfoEnum.BUGFIX,PackageKitGlib.InfoEnum.IMPORTANT,PackageKitGlib.InfoEnum.SECURITYorPackageKitGlib.InfoEnum.CRITICAL.Added in version 1.2.4.
- do_changed() virtual¶
Signal Details¶
- PackageKitGlib.Package.signals.changed(package)¶
- Signal Name:
changed- Flags:
- Parameters:
package (
PackageKitGlib.Package) – The object which received the signal
The
::changedsignal is emitted when the package data may have changed.
Property Details¶
- PackageKitGlib.Package.props.description¶
-
The package description
Added in version 0.5.4.
- PackageKitGlib.Package.props.group¶
- Name:
group- Type:
- Default Value:
- Flags:
The package group
Added in version 0.5.4.
- PackageKitGlib.Package.props.info¶
- Name:
info- Type:
- Default Value:
- Flags:
The
PackageKitGlib.InfoEnumpackage type, e.g.PackageKitGlib.InfoEnum.NORMALAdded in version 0.5.4.
- PackageKitGlib.Package.props.license¶
-
The package license
Added in version 0.5.4.
- PackageKitGlib.Package.props.package_id¶
-
The full package_id, e.g. ‘gnome-power-manager;0.1.2;i386;fedora’
Added in version 0.5.4.
- PackageKitGlib.Package.props.size¶
-
The package size
Added in version 0.5.4.
- PackageKitGlib.Package.props.summary¶
-
The package summary
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_bugzilla_urls¶
-
The update bugzilla URLs
Added in version 0.8.1.
- PackageKitGlib.Package.props.update_changelog¶
-
The update ChangeLog
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_cve_urls¶
-
The update CVE URLs
Added in version 0.8.1.
- PackageKitGlib.Package.props.update_issued¶
-
When the update was issued
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_obsoletes¶
-
The update packages that are obsoleted
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_restart¶
- Name:
update-restart- Type:
- Default Value:
- Flags:
The update restart type
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_severity¶
- Name:
update-severity- Type:
- Default Value:
- Flags:
Can be one of
PackageKitGlib.InfoEnum.UNKNOWN,PackageKitGlib.InfoEnum.LOW,PackageKitGlib.InfoEnum.ENHANCEMENT,PackageKitGlib.InfoEnum.NORMAL,PackageKitGlib.InfoEnum.BUGFIX,PackageKitGlib.InfoEnum.IMPORTANT,PackageKitGlib.InfoEnum.SECURITYorPackageKitGlib.InfoEnum.CRITICAL.Added in version 1.2.4.
- PackageKitGlib.Package.props.update_state¶
- Name:
update-state- Type:
- Default Value:
- Flags:
The update state
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_text¶
-
The update description
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_updated¶
-
When the update was last updated
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_updates¶
-
The update packages
Added in version 0.5.4.
- PackageKitGlib.Package.props.update_vendor_urls¶
-
The update vendor URLs
Added in version 0.8.1.