How to retrieve information from a transaction element.
More...
How to retrieve information from a transaction element.
◆ rpmElementType
Transaction element type.
◆ rpmElementType_e
Transaction element type.
Enumerator |
---|
TR_ADDED | Package will be installed.
|
TR_REMOVED | Package will be removed.
|
TR_RPMDB | Package from the rpmdb.
|
TR_RESTORED | Package will be restored.
|
◆ rpmteA()
const char * rpmteA |
( |
rpmte |
te | ) |
|
Retrieve arch string of transaction element.
- Parameters
-
- Returns
- arch string
◆ rpmteCleanDS()
void rpmteCleanDS |
( |
rpmte |
te | ) |
|
Destroy dependency set info of transaction element.
- Parameters
-
◆ rpmteCleanProblems()
void rpmteCleanProblems |
( |
rpmte |
te | ) |
|
Destroy problem set info of transaction element.
- Parameters
-
◆ rpmteColor()
rpm_color_t rpmteColor |
( |
rpmte |
te | ) |
|
Retrieve color bits of transaction element.
- Parameters
-
- Returns
- color bits
◆ rpmteDBInstance()
unsigned int rpmteDBInstance |
( |
rpmte |
te | ) |
|
Retrieve last instance installed to the database.
- Parameters
-
- Returns
- last install instance.
◆ rpmteDBOffset()
int rpmteDBOffset |
( |
rpmte |
te | ) |
|
Retrieve rpmdb instance of transaction element.
- Parameters
-
- Returns
- rpmdb instance (0 if not installed))
◆ rpmteDependsOn()
rpmte rpmteDependsOn |
( |
rpmte |
te | ) |
|
Retrieve dependent element of transaction element.
- Parameters
-
- Returns
- dependent transaction element
◆ rpmteDS()
rpmds rpmteDS |
( |
rpmte |
te, |
|
|
rpmTagVal |
tag |
|
) |
| |
Retrieve dependency tag set from transaction element.
- Parameters
-
te | transaction element |
tag | dependency tag |
- Returns
- dependency tag set
◆ rpmteE()
const char * rpmteE |
( |
rpmte |
te | ) |
|
Retrieve epoch string of transaction element.
- Parameters
-
- Returns
- epoch string
◆ rpmteEVR()
const char * rpmteEVR |
( |
rpmte |
te | ) |
|
Retrieve [epoch:]version-release string from transaction element.
- Parameters
-
- Returns
- [epoch:]version-release string
◆ rpmteFailed()
int rpmteFailed |
( |
rpmte |
te | ) |
|
Return failure status of transaction element. If the element itself failed, this is 1, larger count means one of it's parents failed.
- Parameters
-
- Returns
- number of failures for this transaction element
◆ rpmteFiles()
rpmfiles rpmteFiles |
( |
rpmte |
te | ) |
|
Retrieve file info set from transaction element.
- Parameters
-
- Returns
- file info set (refcounted)
◆ rpmteHeader()
Header rpmteHeader |
( |
rpmte |
te | ) |
|
Retrieve header from transaction element.
- Parameters
-
- Returns
- header (new reference)
◆ rpmteIsSource()
int rpmteIsSource |
( |
rpmte |
te | ) |
|
Retrieve isSource attribute of transaction element.
- Parameters
-
- Returns
- isSource attribute
◆ rpmteKey()
fnpyKey rpmteKey |
( |
rpmte |
te | ) |
|
Retrieve key from transaction element.
- Parameters
-
- Returns
- key
◆ rpmteN()
const char * rpmteN |
( |
rpmte |
te | ) |
|
Retrieve name string of transaction element.
- Parameters
-
- Returns
- name string
◆ rpmteNEVR()
const char * rpmteNEVR |
( |
rpmte |
te | ) |
|
Retrieve name-[epoch:]version-release string from transaction element.
- Parameters
-
- Returns
- name-[epoch:]version-release string
◆ rpmteNEVRA()
const char * rpmteNEVRA |
( |
rpmte |
te | ) |
|
Retrieve name-[epoch:]version-release.arch string from transaction element.
- Parameters
-
- Returns
- name-[epoch:]version-release.arch string
◆ rpmteO()
const char * rpmteO |
( |
rpmte |
te | ) |
|
Retrieve os string of transaction element.
- Parameters
-
- Returns
- os string
◆ rpmteParent()
rpmte rpmteParent |
( |
rpmte |
te | ) |
|
Retrieve parent transaction element.
- Parameters
-
- Returns
- parent transaction element
◆ rpmtePkgFileSize()
rpm_loff_t rpmtePkgFileSize |
( |
rpmte |
te | ) |
|
Retrieve size in bytes of package file.
- Todo:
- Signature header is estimated at 256b.
- Parameters
-
- Returns
- size in bytes of package file.
◆ rpmteProblems()
rpmps rpmteProblems |
( |
rpmte |
te | ) |
|
Return problem set info of transaction element.
- Parameters
-
- Returns
- problem set (or NULL if none)
◆ rpmteR()
const char * rpmteR |
( |
rpmte |
te | ) |
|
Retrieve release string of transaction element.
- Parameters
-
- Returns
- release string
◆ rpmteSetColor()
rpm_color_t rpmteSetColor |
( |
rpmte |
te, |
|
|
rpm_color_t |
color |
|
) |
| |
Set color bits of transaction element.
- Parameters
-
te | transaction element |
color | new color bits |
- Returns
- previous color bits
◆ rpmteSetDBInstance()
void rpmteSetDBInstance |
( |
rpmte |
te, |
|
|
unsigned int |
instance |
|
) |
| |
Set last instance installed to the database.
- Parameters
-
te | transaction element |
instance | Database instance of last install element. |
◆ rpmteSetDependsOn()
void rpmteSetDependsOn |
( |
rpmte |
te, |
|
|
rpmte |
depends |
|
) |
| |
Set dependent element of transaction element.
- Parameters
-
te | transaction element |
depends | dependent transaction element |
◆ rpmteSetHeader()
Save header into transaction element.
- Parameters
-
te | transaction element |
h | header |
- Returns
- NULL always
◆ rpmteSetParent()
rpmte rpmteSetParent |
( |
rpmte |
te, |
|
|
rpmte |
pte |
|
) |
| |
Set parent transaction element.
- Parameters
-
te | transaction element |
pte | new parent transaction element |
- Returns
- previous parent transaction element
◆ rpmteSetUserdata()
void rpmteSetUserdata |
( |
rpmte |
te, |
|
|
void * |
data |
|
) |
| |
Set private user data of transaction element.
- Parameters
-
te | transaction element |
data | pointer to private user data |
◆ rpmteType()
Retrieve type of transaction element.
- Parameters
-
- Returns
- type
◆ rpmteUserdata()
void * rpmteUserdata |
( |
rpmte |
te | ) |
|
Retrieve private user data of transaction element.
- Parameters
-
- Returns
- pointer to private user data
◆ rpmteV()
const char * rpmteV |
( |
rpmte |
te | ) |
|
Retrieve version string of transaction element.
- Parameters
-
- Returns
- version string
◆ rpmteVerified()
int rpmteVerified |
( |
rpmte |
te | ) |
|
Retrieve verification status from transaction element. Returns RPMSIG_UNVERIFIED_TYPE if no verify has been attempted, otherwise RPMSIG_SIGNATURE_TYPE and RPMSIG_DIGEST_TYPE bits will be set if that type of verification was successfully performed.
- Parameters
-
- Returns
- verification status
◆ rpmtsiFree()
rpmtsi rpmtsiFree |
( |
rpmtsi |
tsi | ) |
|
Destroy transaction element iterator.
- Parameters
-
tsi | transaction element iterator |
- Returns
- NULL always
◆ rpmtsiInit()
rpmtsi rpmtsiInit |
( |
rpmts |
ts | ) |
|
Create transaction element iterator.
- Parameters
-
- Returns
- transaction element iterator
◆ rpmtsiNext()
rpmte rpmtsiNext |
( |
rpmtsi |
tsi, |
|
|
rpmElementTypes |
types |
|
) |
| |
Return next transaction element of type.
- Parameters
-
tsi | transaction element iterator |
types | transaction element type selector (0 for any) |
- Returns
- next transaction element of type, NULL on termination