#include "system.h"
#include <rpmlib.h>
#include "psm.h"
#include "rpmds.h"
#include "rpmfi.h"
#include "rpmte.h"
#include "rpmts.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMTE_INTERNAL |
Functions | |
void | rpmteCleanDS (rpmte te) |
Destroy dependency set info of transaction element. | |
void | delTE (rpmte p) |
Destroy transaction element data. | |
void | addTE (rpmts ts, rpmte p, Header h, fnpyKey key, rpmRelocation *relocs) |
Initialize transaction element data from header. | |
rpmte | rpmteFree (rpmte te) |
Destroy a transaction element. | |
rpmte | rpmteNew (const rpmts ts, Header h, rpmElementType type, fnpyKey key, rpmRelocation *relocs, int dboffset, alKey pkgKey) |
Create a 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 * | rpmteA (rpmte te) |
Retrieve arch string of transaction element. | |
const char * | rpmteO (rpmte te) |
Retrieve os string of transaction element. | |
uint_32 | rpmteColor (rpmte te) |
Retrieve color bits of transaction element. | |
uint_32 | rpmteSetColor (rpmte te, uint_32 color) |
Set color bits of transaction element. | |
uint_32 | rpmtePkgFileSize (rpmte te) |
Retrieve size in bytes of package file. | |
int | rpmteDepth (rpmte te) |
Retrieve tsort tree depth of transaction element. | |
int | rpmteSetDepth (rpmte te, int ndepth) |
Set tsort tree depth 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. | |
alKey | rpmteAddedKey (rpmte te) |
Retrieve pkgKey of TR_ADDED transaction element. | |
alKey | rpmteSetAddedKey (rpmte te, alKey npkgKey) |
Set pkgKey of TR_ADDED transaction element. | |
alKey | rpmteDependsOnKey (rpmte te) |
Retrieve dependent pkgKey of TR_REMOVED 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. | |
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 | rpmtsiOc (rpmtsi tsi) |
Return transaction element index. | |
rpmtsi | XrpmtsiFree (rpmtsi tsi, const char *fn, unsigned int ln) |
Destroy transaction element iterator. | |
rpmtsi | XrpmtsiInit (rpmts ts, const char *fn, unsigned int ln) |
Create transaction element iterator. | |
rpmte | rpmtsiNextElement (rpmtsi tsi) |
Return next transaction element. | |
rpmte | rpmtsiNext (rpmtsi tsi, rpmElementType type) |
Return next transaction element of type. | |
Variables | |
int | _rpmte_debug = 0 |
Definition in file rpmte.c.
|
|
|
Initialize transaction element data from header.
Definition at line 85 of file rpmte.c. References fnpyKey, HGE_t, hGetNEVR(), int_32, rpmRelocation_s::newPath, rpmRelocation_s::oldPath, RPM_MACHTABLE_INSTARCH, RPM_MACHTABLE_INSTOS, rpmdsNew(), rpmdsThis(), rpmfiNew(), rpmMachineScore(), RPMSENSE_EQUAL, RPMTAG_ARCH, RPMTAG_BASENAMES, RPMTAG_CONFLICTNAME, RPMTAG_EPOCH, RPMTAG_OBSOLETENAME, RPMTAG_OS, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, rpmte, rpmteColorDS(), rpmts, rpmtsSetRelocateElement(), stpcpy(), xmalloc(), and xstrdup(). Referenced by rpmteNew(). |
|
Destroy transaction element data.
Definition at line 38 of file rpmte.c. References _free(), fdFree, headerFree(), rpmRelocation_s::newPath, rpmRelocation_s::oldPath, rpmfiFree(), rpmte, and rpmteCleanDS(). Referenced by rpmteFree(). |
|
Retrieve arch string of transaction element.
Definition at line 253 of file rpmte.c. References rpmte. Referenced by rpmte_A(), rpmtsAddInstallElement(), rpmtsCheck(), and rpmtsRun(). |
|
Retrieve pkgKey of TR_ADDED transaction element.
Definition at line 395 of file rpmte.c. References alKey, RPMAL_NOMATCH, and rpmte. Referenced by addRelation(), rpmte_AddedKey(), rpmtsAddInstallElement(), rpmtsOrder(), and rpmtsRun(). |
|
Destroy dependency set info of transaction element.
Definition at line 25 of file rpmte.c. References rpmdsFree(), and rpmte. Referenced by delTE(), and rpmtsClean(). |
|
Retrieve color bits of transaction element.
Definition at line 263 of file rpmte.c. References rpmte, and uint_32. Referenced by handleInstInstalledFiles(), rpmte_Color(), rpmtsCheck(), and rpmtsRun(). |
|
Calculate transaction element dependency colors/refs from file info.
Definition at line 481 of file rpmte.c. References alloca(), int_32, rpmds, rpmdsCount(), rpmdsInit(), rpmdsNext(), rpmdsSetColor(), rpmdsSetRefs(), rpmfi, rpmfiFC(), rpmfiFColor(), rpmfiFDepends(), rpmfiInit(), rpmfiNext(), rpmTag, RPMTAG_BASENAMES, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, rpmte, rpmteDS(), and rpmteFI(). Referenced by addTE(). |
|
Retrieve rpmdb instance of TR_REMOVED transaction element.
Definition at line 416 of file rpmte.c. References rpmte. Referenced by rpmte_DBOffset(), and rpmtsRun(). |
|
Retrieve number of children of transaction element.
Definition at line 347 of file rpmte.c. References rpmte. Referenced by rpmte_Degree(), and rpmtsOrder(). |
|
Retrieve dependent pkgKey of TR_REMOVED transaction element.
Definition at line 411 of file rpmte.c. References alKey, RPMAL_NOMATCH, and rpmte. Referenced by rpmte_DependsOnKey(), rpmtsOrder(), and rpmtsRun(). |
|
Retrieve tsort tree depth of transaction element.
Definition at line 283 of file rpmte.c. References rpmte. Referenced by addRelation(), rpmGraph(), rpmte_Depth(), and rpmtsOrder(). |
|
Retrieve dependency tag set from transaction element.
Definition at line 443 of file rpmte.c. References rpmds, rpmTag, RPMTAG_CONFLICTNAME, RPMTAG_NAME, RPMTAG_OBSOLETENAME, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, and rpmte. Referenced by rpmte_DS(), rpmteColorDS(), rpmtsAddInstallElement(), rpmtsCheck(), and rpmtsOrder(). |
|
Retrieve epoch string of transaction element.
Definition at line 238 of file rpmte.c. References rpmte. Referenced by ensureOlder(), rpmte_E(), and rpmtsRun(). |
|
Retrieve file handle from transaction element.
Definition at line 431 of file rpmte.c. References rpmte. Referenced by rpmpsmStage(), and rpmtsRun(). |
|
Retrieve file info tag set from transaction element.
Definition at line 468 of file rpmte.c. References rpmfi, rpmTag, RPMTAG_BASENAMES, and rpmte. Referenced by rpmte_FI(), rpmteColorDS(), rpmtsAddInstallElement(), rpmtsCheck(), and rpmtsCheckDSIProblems(). |
|
Destroy a transaction element.
Definition at line 188 of file rpmte.c. References _free(), delTE(), and rpmte. Referenced by rpmpsmFree(), rpmtsAddInstallElement(), and rpmtsEmpty(). |
|
Destroy tsort info of transaction element.
Definition at line 369 of file rpmte.c. References _free(), rpmte, rpmteTSI(), and tsortInfo. Referenced by rpmteNewTSI(), and rpmtsOrder(). |
|
Retrieve key from transaction element.
Definition at line 438 of file rpmte.c. References fnpyKey, and rpmte. Referenced by ensureOlder(), handleInstInstalledFiles(), handleOverlappedFiles(), relocateFileList(), rpmte_Key(), rpmtsCheckDSIProblems(), rpmtsGetKeys(), and rpmtsRun(). |
|
Retrieve name string of transaction element.
Definition at line 233 of file rpmte.c. References rpmte. Referenced by ensureOlder(), ignoreDep(), rpmGraph(), rpmpsmStage(), rpmte_N(), rpmtsAddInstallElement(), rpmtsCheck(), rpmtsRun(), and runTriggers(). |
|
Retrieve name-version-release string from transaction element.
Definition at line 421 of file rpmte.c. References rpmte. Referenced by ensureOlder(), handleInstInstalledFiles(), handleOverlappedFiles(), relocateFileList(), rpmte_NEVR(), rpmte_print(), rpmtsCheck(), rpmtsCheckDSIProblems(), rpmtsOrder(), rpmtsRun(), and zapRelation(). |
|
Retrieve name-version-release.arch string from transaction element.
Definition at line 426 of file rpmte.c. References rpmte. |
|
Create a transaction element.
Definition at line 198 of file rpmte.c. References addTE(), alKey, fnpyKey, headerGetEntry(), int_32, rpmElementType, RPMTAG_SIGSIZE, rpmte, rpmts, TR_ADDED, TR_REMOVED, and xcalloc(). Referenced by removePackage(), and rpmtsAddInstallElement(). |
|
Initialize tsort info of transaction element.
Definition at line 387 of file rpmte.c. References rpmte, rpmteFreeTSI(), and xcalloc(). Referenced by rpmtsOrder(). |
|
Retrieve tsort no. of predecessors of transaction element.
Definition at line 298 of file rpmte.c. References rpmte. Referenced by rpmte_Npreds(), and rpmtsOrder(). |
|
Retrieve os string of transaction element.
Definition at line 258 of file rpmte.c. References rpmte. Referenced by rpmte_O(), rpmtsAddInstallElement(), rpmtsCheck(), and rpmtsRun(). |
|
Retrieve parent transaction element.
Definition at line 328 of file rpmte.c. References rpmte. Referenced by rpmGraph(), and rpmte_Parent(). |
|
Retrieve size in bytes of package file.
Definition at line 278 of file rpmte.c. References rpmte, and uint_32. Referenced by rpmte_PkgFileSize(), and rpmtsOrder(). |
|
Retrieve release string of transaction element.
Definition at line 248 of file rpmte.c. References rpmte. Referenced by ensureOlder(), rpmte_R(), and rpmtsRun(). |
|
Set pkgKey of TR_ADDED transaction element.
Definition at line 400 of file rpmte.c. References alKey, RPMAL_NOMATCH, and rpmte. Referenced by rpmtsAddInstallElement(). |
|
Set color bits of transaction element.
|
|
Set number of children of transaction element.
Definition at line 352 of file rpmte.c. References rpmte. Referenced by rpmtsOrder(). |
|
Set tsort tree depth of transaction element.
Definition at line 288 of file rpmte.c. References rpmte. Referenced by addRelation(), and rpmtsOrder(). |
|
Set tsort no. of predecessors of transaction element.
Definition at line 303 of file rpmte.c. References rpmte. Referenced by rpmtsOrder(). |
|
Set parent transaction element.
Definition at line 333 of file rpmte.c. References rpmte. Referenced by rpmtsOrder(). |
|
Set tree index of transaction element.
Definition at line 318 of file rpmte.c. References rpmte. Referenced by rpmtsOrder(). |
|
Retrieve tree index of transaction element.
Definition at line 313 of file rpmte.c. References rpmte. Referenced by rpmGraph(), rpmte_Tree(), and rpmtsOrder(). |
|
Retrieve tsort info for transaction element.
Definition at line 362 of file rpmte.c. References rpmte, and tsortInfo. Referenced by addQ(), addRelation(), markLoop(), rpmteFreeTSI(), rpmtsOrder(), and zapRelation(). |
|
Retrieve type of transaction element.
Definition at line 228 of file rpmte.c. References rpmElementType, and rpmte. Referenced by addRelation(), fsmMapPath(), handleOverlappedFiles(), mapInitIterator(), rpmfiNew(), rpmfiTypeString(), rpmte_print(), rpmte_TEType(), rpmtsAddInstallElement(), rpmtsGetKeys(), rpmtsOrder(), and rpmtsRun(). |
|
Retrieve version string of transaction element.
Definition at line 243 of file rpmte.c. References rpmte. Referenced by ensureOlder(), rpmte_V(), and rpmtsRun(). |
|
Return next transaction element of type.
Definition at line 612 of file rpmte.c. References rpmElementType, rpmte, rpmtsi, and rpmtsiNextElement(). Referenced by addRelation(), rpmGraph(), rpmts_iternext(), rpmtsAddInstallElement(), rpmtsCheck(), rpmtsClean(), rpmtsEmpty(), rpmtsGetKeys(), rpmtsOrder(), and rpmtsRun(). |
|
Return next transaction element.
Definition at line 590 of file rpmte.c. References rpmte, rpmtsElement(), rpmtsi, and rpmtsNElements(). Referenced by rpmtsiNext(). |
|
Return transaction element index.
Definition at line 549 of file rpmte.c. References rpmtsi. Referenced by rpmtsOrder(), and rpmtsRun(). |
|
Destroy transaction element iterator.
Definition at line 554 of file rpmte.c. References _free(), rpmtsFree(), and rpmtsi. |
|
Create transaction element iterator.
Definition at line 568 of file rpmte.c. References RPMTRANS_FLAG_REVERSE, rpmts, rpmtsFlags(), rpmtsi, rpmtsLink, rpmtsNElements(), and xcalloc(). |
|
|