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 |
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.
New in version 0.5.0.
- classmethod id_check(package_id)¶
- Parameters:
package_id (
str
) – the PackageID to check- Returns:
True
if the PackageID was well formed.- Return type:
Check if a Packageid is well formed.
New in version 0.5.0.
- classmethod id_equal_fuzzy_arch(package_id1, package_id2)¶
- Parameters:
- Returns:
True
if the PackageIDs can be considered equal.- Return type:
Only compare the name, version, and arch, where the architecture will fuzzy match with i*86.
New in version 0.5.0.
- classmethod id_split(package_id)¶
- Parameters:
package_id (
str
) – the ; delimited PackageID to split- Returns:
a GStrv or
None
if 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.
New 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.
New 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.
New 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.
New in version 0.5.2.
- classmethod ids_check(package_ids)¶
- Parameters:
package_ids (
str
) – a string array of package_id’s- Returns:
True
if the package_ids are all valid.- Return type:
Check the string array of package_id’s for validity
New in version 0.5.2.
- classmethod ids_from_id(package_id)¶
- Parameters:
package_id (
str
) – A single package_id- Returns:
the string array, or
None
if invalid, free withGLib.strfreev
()- Return type:
[
str
]
Form a composite string array of package_id’s from a single package_id
New in version 0.5.2.
- classmethod ids_from_string(package_id)¶
- Parameters:
package_id (
str
) – A single package_id- Returns:
the string array, or
None
if invalid, free withGLib.strfreev
()- Return type:
[
str
]
Form a composite string array of package_id’s from a delimited string
New in version 0.5.2.
- classmethod ids_present_id(package_ids, package_id)¶
- Parameters:
- Returns:
True
if the package ID is present- Return type:
Finds out if a package ID is present in the list.
New 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.
New 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
New in version 0.5.2.
- classmethod new()¶
- Returns:
a new
PackageKitGlib.Package
object.- Return type:
New in version 0.5.4.
- equal(package2)¶
- Parameters:
package2 (
PackageKitGlib.Package
) – a validPackageKitGlib.Package
instance- Returns:
True
if the packages have the same package_id, info and summary.- Return type:
Do the
PackageKitGlib.Package
's have the same ID.New in version 0.5.4.
- equal_id(package2)¶
- Parameters:
package2 (
PackageKitGlib.Package
) – a validPackageKitGlib.Package
instance- Returns:
True
if the packages have the same package_id.- Return type:
Do the
PackageKitGlib.Package
's have the same ID.New in version 0.5.4.
- get_arch()¶
-
Gets the package arch.
New 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.
New in version 0.6.4.
- get_id()¶
-
Gets the package object ID
New in version 0.5.4.
- get_info()¶
- Returns:
- Return type:
Gets the package object ID
New in version 0.5.4.
- get_name()¶
-
Gets the package name.
New in version 0.6.4.
- get_summary()¶
-
Gets the package object ID
New 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.SECURITY
orPackageKitGlib.InfoEnum.CRITICAL
.New in version 1.2.4.
- get_version()¶
-
Gets the package version.
New in version 0.6.4.
- parse(data)¶
- Parameters:
data (
str
) – the data describing the package- Raises:
- Returns:
True
if the data was parsed correcty- Return type:
Parses the data to populate the
PackageKitGlib.Package
.New in version 0.8.11.
- print_()¶
Prints details about the package to standard out.
New in version 0.5.4.
- set_id(package_id)¶
- Parameters:
package_id (
str
) – the valid package_id- Raises:
- Returns:
True
if the package_id was set- Return type:
Sets the package object to have the given ID
New in version 0.5.4.
- set_info(info)¶
- Parameters:
info (
PackageKitGlib.InfoEnum
) – thePackageKitGlib.InfoEnum
Sets the package info enum.
New in version 0.8.14.
- set_summary(summary)¶
- Parameters:
summary (
str
) – the package summary
Sets the package summary.
New 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.SECURITY
orPackageKitGlib.InfoEnum.CRITICAL
.New 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
::changed
signal is emitted when the package data may have changed.
Property Details¶
- PackageKitGlib.Package.props.description¶
-
The package description
New in version 0.5.4.
- PackageKitGlib.Package.props.group¶
- Name:
group
- Type:
- Default Value:
- Flags:
The package group
New in version 0.5.4.
- PackageKitGlib.Package.props.info¶
- Name:
info
- Type:
- Default Value:
- Flags:
The
PackageKitGlib.InfoEnum
package type, e.g.PackageKitGlib.InfoEnum.NORMAL
New in version 0.5.4.
- PackageKitGlib.Package.props.license¶
-
The package license
New in version 0.5.4.
- PackageKitGlib.Package.props.package_id¶
-
The full package_id, e.g. ‘gnome-power-manager;0.1.2;i386;fedora’
New in version 0.5.4.
- PackageKitGlib.Package.props.size¶
-
The package size
New in version 0.5.4.
- PackageKitGlib.Package.props.summary¶
-
The package summary
New in version 0.5.4.
- PackageKitGlib.Package.props.update_bugzilla_urls¶
-
The update bugzilla URLs
New in version 0.8.1.
- PackageKitGlib.Package.props.update_changelog¶
-
The update ChangeLog
New in version 0.5.4.
- PackageKitGlib.Package.props.update_cve_urls¶
-
The update CVE URLs
New in version 0.8.1.
- PackageKitGlib.Package.props.update_issued¶
-
When the update was issued
New in version 0.5.4.
- PackageKitGlib.Package.props.update_obsoletes¶
-
The update packages that are obsoleted
New in version 0.5.4.
- PackageKitGlib.Package.props.update_restart¶
- Name:
update-restart
- Type:
- Default Value:
- Flags:
The update restart type
New 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.SECURITY
orPackageKitGlib.InfoEnum.CRITICAL
.New in version 1.2.4.
- PackageKitGlib.Package.props.update_state¶
- Name:
update-state
- Type:
- Default Value:
- Flags:
The update state
New in version 0.5.4.
- PackageKitGlib.Package.props.update_text¶
-
The update description
New in version 0.5.4.
- PackageKitGlib.Package.props.update_updated¶
-
When the update was last updated
New in version 0.5.4.
- PackageKitGlib.Package.props.update_updates¶
-
The update packages
New in version 0.5.4.
- PackageKitGlib.Package.props.update_vendor_urls¶
-
The update vendor URLs
New in version 0.8.1.