|
rpm 5.3.12
|
|
Files | |
| file | rpmlib.h |
In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not. | |
| file | rpmte.h |
Structures used for an "rpmte" transaction element. | |
Typedefs | |
| typedef struct tsortInfo_s * | tsortInfo |
| Transaction element ordering chain linkage. | |
| typedef struct rpmtsi_s * | rpmtsi |
| Transaction element iterator. | |
| typedef enum rpmElementType_e | rpmElementType |
| Transaction element type. | |
| typedef struct rpmte_s * | rpmte |
| An element of a transaction set, i.e. | |
Enumerations | |
| enum | rpmElementType_e { TR_ADDED = (1 << 0), TR_REMOVED = (1 << 1) } |
| Transaction element type. More... | |
Functions | |
| rpmte | rpmteFree (rpmte te) |
| Destroy a transaction element. | |
| rpmte | rpmteNew (const rpmts ts, Header h, rpmElementType type, fnpyKey key, rpmRelocation relocs, uint32_t dboffset, alKey pkgKey) |
| Create a transaction element. | |
| Header | rpmteHeader (rpmte te) |
| Retrieve header from transaction element. | |
| Header | rpmteSetHeader (rpmte te, Header h) |
| Save header into transaction element. | |
| rpmElementType | rpmteType (rpmte te) |
| Retrieve type of transaction element. | |
| const char * | rpmteN (rpmte te) |
| Retrieve name string of transaction element. | |
| const char * | rpmteE (rpmte te) |
| Retrieve epoch string of transaction element. | |
| const char * | rpmteV (rpmte te) |
| Retrieve version string of transaction element. | |
| const char * | rpmteR (rpmte te) |
| Retrieve release string of transaction element. | |
| const char * | rpmteD (rpmte te) |
| Retrieve distepoch string of transaction element. | |
| const char * | rpmteA (rpmte te) |
| Retrieve arch string of transaction element. | |
| const char * | rpmteO (rpmte te) |
| Retrieve os string of transaction element. | |
| int | rpmteIsSource (rpmte te) |
| Retrieve isSource attribute of transaction element. | |
| rpmuint32_t | rpmteColor (rpmte te) |
| Retrieve color bits of transaction element. | |
| rpmuint32_t | rpmteSetColor (rpmte te, rpmuint32_t color) |
| Set color bits of transaction element. | |
| uint32_t | rpmteDBInstance (rpmte te) |
| Retrieve last instance installed to the database. | |
| void | rpmteSetDBInstance (rpmte te, unsigned int instance) |
| Set last instance installed to the database. | |
| rpmuint32_t | rpmtePkgFileSize (rpmte te) |
| Retrieve size in bytes of package file. | |
| rpmuint32_t * | rpmteOriginTid (rpmte te) |
| Retrieve transaction start time that package was first installed. | |
| rpmuint32_t * | rpmteOriginTime (rpmte te) |
| Retrieve time that package was first installed. | |
| int | rpmteDepth (rpmte te) |
| Retrieve dependency tree depth of transaction element. | |
| int | rpmteSetDepth (rpmte te, int ndepth) |
| Set dependency tree depth of transaction element. | |
| int | rpmteBreadth (rpmte te) |
| Retrieve dependency tree breadth of transaction element. | |
| int | rpmteSetBreadth (rpmte te, int nbreadth) |
| Set dependency tree breadth of transaction element. | |
| int | rpmteNpreds (rpmte te) |
| Retrieve tsort no. | |
| int | rpmteSetNpreds (rpmte te, int npreds) |
| Set tsort no. | |
| int | rpmteTree (rpmte te) |
| Retrieve tree index of transaction element. | |
| int | rpmteSetTree (rpmte te, int ntree) |
| Set tree index of transaction element. | |
| rpmte | rpmteParent (rpmte te) |
| Retrieve parent transaction element. | |
| rpmte | rpmteSetParent (rpmte te, rpmte pte) |
| Set parent transaction element. | |
| int | rpmteDegree (rpmte te) |
| Retrieve number of children of transaction element. | |
| int | rpmteSetDegree (rpmte te, int ndegree) |
| Set number of children of transaction element. | |
| tsortInfo | rpmteTSI (rpmte te) |
| Retrieve tsort info for transaction element. | |
| void | rpmteFreeTSI (rpmte te) |
| Destroy tsort info of transaction element. | |
| void | rpmteNewTSI (rpmte te) |
| Initialize tsort info of transaction element. | |
| void | rpmteCleanDS (rpmte te) |
| Destroy dependency set info of transaction element. | |
| int | rpmteDBOffset (rpmte te) |
| Retrieve rpmdb instance of TR_REMOVED transaction element. | |
| const char * | rpmteNEVR (rpmte te) |
| Retrieve name-version-release string from transaction element. | |
| const char * | rpmteNEVRA (rpmte te) |
| Retrieve name-version-release.arch string from transaction element. | |
| const char * | rpmtePkgid (rpmte te) |
| Retrieve pkgid string from transaction element. | |
| const char * | rpmteHdrid (rpmte te) |
| Retrieve hdrid string from transaction element. | |
| const char * | rpmteSourcerpm (rpmte te) |
| Retrieve sourcerpm string from transaction element. | |
| FD_t | rpmteFd (rpmte te) |
| Retrieve file handle from transaction element. | |
| fnpyKey | rpmteKey (rpmte te) |
| Retrieve key from transaction element. | |
| rpmds | rpmteDS (rpmte te, rpmTag tag) |
| Retrieve dependency tag set from transaction element. | |
| rpmfi | rpmteFI (rpmte te, rpmTag tag) |
| Retrieve file info tag set from transaction element. | |
| void | rpmteColorDS (rpmte te, rpmTag tag) |
| Calculate transaction element dependency colors/refs from file info. | |
| int | rpmteChain (rpmte p, rpmte q, Header oh, const char *msg) |
| Chain p <-> q forward/backward transaction element links. | |
| int | rpmtsiOc (rpmtsi tsi) |
| Return transaction element index. | |
| rpmtsi | rpmtsiFree (rpmtsi tsi) |
| Destroy transaction element iterator. | |
| rpmtsi | rpmtsiInit (rpmts ts) |
| Create transaction element iterator. | |
| rpmtsi | XrpmtsiInit (rpmts ts, const char *fn, unsigned int ln) |
| Create transaction element iterator. | |
| rpmte | rpmtsiNext (rpmtsi tsi, rpmElementType type) |
| Return next transaction element of type. | |
| typedef enum rpmElementType_e rpmElementType |
Transaction element type.
| typedef struct rpmte_s* rpmte |
An element of a transaction set, i.e.
a TR_ADDED or TR_REMOVED package.
Definition at line 38 of file rpmtypes.h.
| typedef struct rpmtsi_s* rpmtsi |
| typedef struct tsortInfo_s* tsortInfo |
| enum rpmElementType_e |
| const char* rpmteA | ( | rpmte | te | ) |
Retrieve arch string of transaction element.
| te | transaction element |
Definition at line 339 of file rpmte.c.
Referenced by _rpmtsCheck(), rpmpsmStage(), rpmte_A(), rpmte_print(), rpmtsAddInstallElement(), rpmtsProcess(), and rpmtsSanityCheck().
| int rpmteBreadth | ( | rpmte | te | ) |
Retrieve dependency tree breadth of transaction element.
| te | transaction element |
Definition at line 399 of file rpmte.c.
Referenced by rpmte_Breadth().
Chain p <-> q forward/backward transaction element links.
| p | installed element (needs backward link) |
| q | erased element (needs forward link) |
| oh | erased element header |
| msg | operation identifier for debugging (NULL uses "") |
Definition at line 676 of file rpmte.c.
References _free(), alloca(), argvAdd(), _HE_s::c, headerGet(), _HE_s::p, rpmDataType_u::ptr, RPMTAG_HDRID, RPMTAG_PKGID, rpmDataType_u::str, _HE_s::tag, rpmDataType_u::ui8p, and xmalloc().
Referenced by findErases(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), and rpmtsEraseDebuginfo().
| void rpmteCleanDS | ( | rpmte | te | ) |
Destroy dependency set info of transaction element.
| te | transaction element |
Definition at line 32 of file rpmte.c.
References rpmdsFreePRCO().
Referenced by delTE(), and rpmtsClean().
| rpmuint32_t rpmteColor | ( | rpmte | te | ) |
Retrieve color bits of transaction element.
| te | transaction element |
Definition at line 354 of file rpmte.c.
Referenced by _rpmtsCheck(), populateInstallHeader(), rpmte_Color(), and rpmtsProcess().
Calculate transaction element dependency colors/refs from file info.
| te | transaction element |
| tag | dependency tag (RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME) |
Definition at line 607 of file rpmte.c.
References alloca(), rpmdsCount(), rpmdsInit(), rpmdsNext(), rpmdsSetColor(), rpmdsSetRefs(), rpmfiFC(), rpmfiFColor(), rpmfiFDepends(), rpmfiInit(), rpmfiNext(), rpmteDS(), and rpmteFI().
Referenced by addTE().
| const char* rpmteD | ( | rpmte | te | ) |
Retrieve distepoch string of transaction element.
| te | transaction element |
Definition at line 330 of file rpmte.c.
Referenced by ensureOlder(), rpmpsmStage(), and rpmtsSanityCheck().
| uint32_t rpmteDBInstance | ( | rpmte | te | ) |
Retrieve last instance installed to the database.
| te | transaction element |
Definition at line 273 of file rpmte.c.
Referenced by rpmteOpen().
| int rpmteDBOffset | ( | rpmte | te | ) |
Retrieve rpmdb instance of TR_REMOVED transaction element.
| te | transaction element |
Definition at line 525 of file rpmte.c.
Referenced by rpmte_DBOffset(), and rpmtsPrepare().
| int rpmteDegree | ( | rpmte | te | ) |
Retrieve number of children of transaction element.
| te | transaction element |
Definition at line 461 of file rpmte.c.
Referenced by rpmte_Degree().
| int rpmteDepth | ( | rpmte | te | ) |
Retrieve dependency tree depth of transaction element.
| te | transaction element |
Definition at line 384 of file rpmte.c.
Referenced by rpmte_Depth().
Retrieve dependency tag set from transaction element.
| te | transaction element |
| tag | dependency tag |
Definition at line 567 of file rpmte.c.
References rpmdsFromPRCO().
Referenced by _rpmtsCheck(), rpmte_DS(), rpmteColorDS(), rpmtsAddInstallElement(), and rpmtsAddObsoletes().
| const char* rpmteE | ( | rpmte | te | ) |
Retrieve epoch string of transaction element.
| te | transaction element |
Definition at line 315 of file rpmte.c.
Referenced by ensureOlder(), rpmpsmStage(), and rpmte_E().
Retrieve file handle from transaction element.
| te | transaction element |
Definition at line 555 of file rpmte.c.
Referenced by rpmpsmStage(), rpmteFDHeader(), and rpmtsProcess().
Retrieve file info tag set from transaction element.
| te | transaction element |
| tag | file info tag (RPMTAG_BASENAMES) |
Definition at line 581 of file rpmte.c.
Referenced by _rpmtsCheck(), handleOverlappedFiles(), removePackage(), rpmInstallSourcePackage(), rpmte_FI(), rpmteColorDS(), rpmtsAddFingerprints(), rpmtsAddInstallElement(), rpmtsCheckDSIProblems(), rpmtsCheckInstalledFiles(), rpmtsFindBaseNamesInDB(), and rpmtsPrepare().
Destroy a transaction element.
| te | transaction element |
Referenced by rpmpsmFini(), rpmtsAddInstallElement(), and rpmtsEmpty().
| void rpmteFreeTSI | ( | rpmte | te | ) |
Destroy tsort info of transaction element.
| te | transaction element |
Definition at line 483 of file rpmte.c.
References _free(), and rpmteTSI().
Referenced by rpmteNewTSI().
| const char* rpmteHdrid | ( | rpmte | te | ) |
Retrieve hdrid string from transaction element.
| te | transaction element |
Definition at line 545 of file rpmte.c.
Referenced by rpmpsmStage(), and rpmte_Hdrid().
Retrieve header from transaction element.
| te | transaction element |
Definition at line 285 of file rpmte.c.
References headerLink().
Referenced by rpmgiNext().
| int rpmteIsSource | ( | rpmte | te | ) |
Retrieve isSource attribute of transaction element.
| te | transaction element |
Definition at line 349 of file rpmte.c.
Referenced by rpmtsAddInstallElement(), and rpmtsProcess().
Retrieve key from transaction element.
| te | transaction element |
Definition at line 562 of file rpmte.c.
Referenced by ensureOlder(), handleInstInstalledFile(), handleOverlappedFiles(), relocateFileList(), rpmte_Key(), rpmtsAddInstallElement(), rpmtsCheckDSIProblems(), rpmtsNotify(), and rpmtsSanityCheck().
| const char* rpmteN | ( | rpmte | te | ) |
Retrieve name string of transaction element.
| te | transaction element |
Definition at line 310 of file rpmte.c.
Referenced by ensureOlder(), rpmpsmStage(), rpmte_N(), rpmtsAddInstallElement(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsSanityCheck(), and runTriggers().
| const char* rpmteNEVR | ( | rpmte | te | ) |
Retrieve name-version-release string from transaction element.
| te | transaction element |
Definition at line 530 of file rpmte.c.
Referenced by _rpmtsCheck(), ensureOlder(), handleOverlappedFiles(), relocateFileList(), rpmpsmStage(), rpmte_NEVR(), rpmte_print(), rpmteFDHeader(), rpmtsCheckDSIProblems(), rpmtsProcess(), and rpmtsSanityCheck().
| const char* rpmteNEVRA | ( | rpmte | te | ) |
Retrieve name-version-release.arch string from transaction element.
| te | transaction element |
Definition at line 535 of file rpmte.c.
Referenced by _rpmtsCheck(), handleInstInstalledFile(), rpmte_NEVRA(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsEraseDebuginfo(), rpmtsProcess(), rpmtsRollback(), and rpmtsSanityCheck().
| rpmte rpmteNew | ( | const rpmts | ts, |
| Header | h, | ||
| rpmElementType | type, | ||
| fnpyKey | key, | ||
| rpmRelocation | relocs, | ||
| uint32_t | dboffset, | ||
| alKey | pkgKey | ||
| ) |
Create a transaction element.
| ts | transaction set |
| h | header |
| type | TR_ADDED/TR_REMOVED |
| key | (TR_ADDED) package retrieval key (e.g. file name) |
| relocs | (TR_ADDED) package file relocations |
| dboffset | (TR_REMOVED) rpmdb instance |
| pkgKey | associated added package (if any) |
Definition at line 239 of file rpmte.c.
References _free(), addTE(), alloca(), headerGet(), _HE_s::p, rpmDataType_u::ptr, RPMTAG_SIGSIZE, rpmteGetPool(), _HE_s::tag, TR_ADDED, TR_REMOVED, and rpmDataType_u::ui32p.
Referenced by removePackage(), and rpmtsAddInstallElement().
| void rpmteNewTSI | ( | rpmte | te | ) |
Initialize tsort info of transaction element.
| te | transaction element |
Definition at line 501 of file rpmte.c.
References rpmteFreeTSI(), and xcalloc().
| int rpmteNpreds | ( | rpmte | te | ) |
Retrieve tsort no.
of predecessors of transaction element.
| te | transaction element |
Definition at line 414 of file rpmte.c.
Referenced by rpmte_Npreds().
| const char* rpmteO | ( | rpmte | te | ) |
Retrieve os string of transaction element.
| te | transaction element |
Definition at line 344 of file rpmte.c.
Referenced by _rpmtsCheck(), rpmpsmStage(), rpmte_O(), rpmtsAddInstallElement(), rpmtsProcess(), and rpmtsSanityCheck().
| rpmuint32_t* rpmteOriginTid | ( | rpmte | te | ) |
Retrieve transaction start time that package was first installed.
| te | transaction element |
Definition at line 374 of file rpmte.c.
Referenced by populateInstallHeader().
| rpmuint32_t* rpmteOriginTime | ( | rpmte | te | ) |
Retrieve time that package was first installed.
| te | transaction element |
Definition at line 379 of file rpmte.c.
Referenced by populateInstallHeader().
Retrieve parent transaction element.
| te | transaction element |
Definition at line 444 of file rpmte.c.
Referenced by rpmte_Parent().
| rpmuint32_t rpmtePkgFileSize | ( | rpmte | te | ) |
Retrieve size in bytes of package file.
| te | transaction element |
Definition at line 369 of file rpmte.c.
Referenced by rpmte_PkgFileSize().
| const char* rpmtePkgid | ( | rpmte | te | ) |
Retrieve pkgid string from transaction element.
| te | transaction element |
Definition at line 540 of file rpmte.c.
Referenced by rpmte_Pkgid().
| const char* rpmteR | ( | rpmte | te | ) |
Retrieve release string of transaction element.
| te | transaction element |
Definition at line 325 of file rpmte.c.
Referenced by ensureOlder(), rpmpsmStage(), and rpmte_R().
| int rpmteSetBreadth | ( | rpmte | te, |
| int | nbreadth | ||
| ) |
| rpmuint32_t rpmteSetColor | ( | rpmte | te, |
| rpmuint32_t | color | ||
| ) |
| void rpmteSetDBInstance | ( | rpmte | te, |
| unsigned int | instance | ||
| ) |
Set last instance installed to the database.
| te | transaction element |
| instance | Database instance of last install element. |
Definition at line 279 of file rpmte.c.
Referenced by rpmpsmStage().
| int rpmteSetDegree | ( | rpmte | te, |
| int | ndegree | ||
| ) |
| int rpmteSetDepth | ( | rpmte | te, |
| int | ndepth | ||
| ) |
Save header into transaction element.
| te | transaction element |
| h | header |
Definition at line 292 of file rpmte.c.
References headerFree(), and headerLink().
Referenced by rpmInstallSourcePackage(), rpmpsmStage(), rpmteClose(), rpmteOpen(), and rpmtsAddInstallElement().
| int rpmteSetNpreds | ( | rpmte | te, |
| int | npreds | ||
| ) |
| int rpmteSetTree | ( | rpmte | te, |
| int | ntree | ||
| ) |
| const char* rpmteSourcerpm | ( | rpmte | te | ) |
Retrieve sourcerpm string from transaction element.
| te | transaction element |
Definition at line 550 of file rpmte.c.
Referenced by rpmtsEraseDebuginfo().
| int rpmteTree | ( | rpmte | te | ) |
Retrieve tree index of transaction element.
| te | transaction element |
Definition at line 429 of file rpmte.c.
Referenced by rpmte_Tree().
Retrieve tsort info for transaction element.
| te | transaction element |
Definition at line 476 of file rpmte.c.
Referenced by rpmteFreeTSI().
| rpmElementType rpmteType | ( | rpmte | te | ) |
Retrieve type of transaction element.
| te | transaction element |
Definition at line 305 of file rpmte.c.
Referenced by _processFailedPackage(), fsmMapPath(), fsmSetup(), handleOverlappedFiles(), iosmMapPath(), iosmSetup(), rpmfiNew(), rpmfiTypeString(), rpmgiNext(), rpmte_print(), rpmte_TEType(), rpmteOpen(), rpmtsAddInstallElement(), rpmtsCheckInstalledFiles(), rpmtsPrepare(), rpmtsProcess(), and rpmtsRepackage().
| const char* rpmteV | ( | rpmte | te | ) |
Retrieve version string of transaction element.
| te | transaction element |
Definition at line 320 of file rpmte.c.
Referenced by ensureOlder(), rpmpsmStage(), and rpmte_V().
Destroy transaction element iterator.
| tsi | transaction element iterator |
Referenced by _rpmtsCheck(), rpmgiFini(), rpmgiNext(), rpmts_iternext(), rpmtsAddFingerprints(), rpmtsAddInstallElement(), rpmtsClean(), rpmtsEmpty(), rpmtsFindBaseNamesInDB(), rpmtsMarkLinkedFailed(), rpmtsPrepare(), rpmtsProcess(), rpmtsRepackage(), rpmtsRollback(), rpmtsRunScript(), rpmtsSanityCheck(), and rpmtsSetup().
Create transaction element iterator.
| ts | transaction set |
Referenced by _rpmtsCheck(), rpmgiNext(), rpmts_iternext(), rpmtsAddFingerprints(), rpmtsAddInstallElement(), rpmtsClean(), rpmtsEmpty(), rpmtsFindBaseNamesInDB(), rpmtsMarkLinkedFailed(), rpmtsPrepare(), rpmtsProcess(), rpmtsRepackage(), rpmtsRollback(), rpmtsRunScript(), rpmtsSanityCheck(), and rpmtsSetup().
| rpmte rpmtsiNext | ( | rpmtsi | tsi, |
| rpmElementType | type | ||
| ) |
Return next transaction element of type.
| tsi | transaction element iterator |
| type | transaction element type selector (0 for any) |
Definition at line 823 of file rpmte.c.
References rpmtsiNextElement().
Referenced by _rpmtsCheck(), rpmgiNext(), rpmts_iternext(), rpmtsAddFingerprints(), rpmtsAddInstallElement(), rpmtsClean(), rpmtsEmpty(), rpmtsFindBaseNamesInDB(), rpmtsMarkLinkedFailed(), rpmtsPrepare(), rpmtsProcess(), rpmtsRepackage(), rpmtsRollback(), rpmtsRunScript(), rpmtsSanityCheck(), and rpmtsSetup().
| int rpmtsiOc | ( | rpmtsi | tsi | ) |
Return transaction element index.
| tsi | transaction element iterator |
Definition at line 749 of file rpmte.c.
Referenced by rpmtsFindBaseNamesInDB(), and rpmtsProcess().
Create transaction element iterator.
| ts | transaction set |
| fn | |
| ln |
Definition at line 783 of file rpmte.c.
References rpmioLinkPoolItem(), rpmtsiGetPool(), rpmtsLink(), and rpmtsNElements().
1.7.4