|
rpm
5.4.14
|
Structures and prototypes used for an "rpmts" transaction set. More...
#include <stdio.h>#include <stdint.h>#include <rpmtypes.h>#include <rpmiotypes.h>#include <rpmps.h>#include <rpmsw.h>#include <rpmpgp.h>#include <rpmtag.h>

Go to the source code of this file.
Macros | |
| #define | _noTransScripts |
| #define | _noTransTriggers |
| #define | rpmtsUnlink(_ts, _msg) ((rpmts) rpmioUnlinkPoolItem((rpmioItem)(_ts), _msg, __FILE__, __LINE__)) |
| #define | rpmtsLink(_ts, _msg) ((rpmts) rpmioLinkPoolItem((rpmioItem)(_ts), _msg, __FILE__, __LINE__)) |
| #define | rpmtsFree(_ts) ((rpmts) rpmioFreePoolItem((rpmioItem)(_ts), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
| typedef pgpVSFlags | rpmVSFlags |
| Bit(s) to control digest and signature verification. More... | |
| typedef enum rpmdepFlags_e | rpmdepFlags |
| Bit(s) to control rpmtsCheck() and rpmtsOrder() operation. More... | |
| typedef enum rpmtransFlags_e | rpmtransFlags |
| Bit(s) to control rpmtsRun() operation. More... | |
| typedef enum rpmtsOpX_e | rpmtsOpX |
| Indices for timestamps. More... | |
| typedef enum rpmTSType_e | rpmTSType |
| Transaction Types. More... | |
| typedef enum tsStage_e | tsmStage |
Functions | |
| int | _rpmtsCheck (rpmts ts) |
| int | _rpmtsOrder (rpmts ts) |
| int | _orgrpmtsOrder (rpmts ts) |
| int | _rpmtsRun (rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) |
| rpmRC | rpmtsRollback (rpmts rbts, rpmprobFilterFlags ignoreSet, int running, rpmte rbte) |
| Rollback a failed transaction. More... | |
| rpmts | rpmtsUnlink (rpmts ts, const char *msg) |
| Unreference a transaction instance. More... | |
| rpmts | rpmtsLink (rpmts ts, const char *msg) |
| Reference a transaction set instance. More... | |
| int | rpmtsCloseDB (rpmts ts) |
| Close the database used by the transaction. More... | |
| int | rpmtsOpenDB (rpmts ts, int dbmode) |
| Open the database used by the transaction. More... | |
| static int | rpmtsInitDB (rpmts ts, int dbmode) |
| Initialize the database used by the transaction. More... | |
| int | rpmtsRebuildDB (rpmts ts) |
| Rebuild the database used by the transaction. More... | |
| static int | rpmtsVerifyDB (rpmts ts) |
| Verify the database used by the transaction. More... | |
| rpmmi | rpmtsInitIterator (const rpmts ts, rpmTag rpmtag, const void *keyp, size_t keylen) |
| Return transaction database iterator. More... | |
| rpmRC | rpmtsFindPubkey (rpmts ts, void *_dig) |
| Retrieve pubkey from rpm database. More... | |
| int | rpmtsCloseSDB (rpmts ts) |
| Close the database used by the transaction to solve dependencies. More... | |
| int | rpmtsOpenSDB (rpmts ts, int dbmode) |
| Open the database used by the transaction to solve dependencies. More... | |
| int | rpmtsSolve (rpmts ts, rpmds ds, const void *data) |
| Attempt to solve a needed dependency using the solve database. More... | |
| int | rpmtsAvailable (rpmts ts, const rpmds ds) |
| Attempt to solve a needed dependency using memory resident tables. More... | |
| int | rpmtsSetSolveCallback (rpmts ts, int(*solve)(rpmts ts, rpmds ds, const void *data), const void *solveData) |
| Set dependency solver callback. More... | |
| rpmTSType | rpmtsType (rpmts ts) |
| Return the type of a transaction. More... | |
| void | rpmtsSetType (rpmts ts, rpmTSType type) |
| Set transaction type. More... | |
| rpmuint32_t | rpmtsARBGoal (rpmts ts) |
| Return the autorollback goal. More... | |
| void | rpmtsSetARBGoal (rpmts ts, rpmuint32_t goal) |
| Set autorollback goal. More... | |
| rpmps | rpmtsProblems (rpmts ts) |
| Return current transaction set problems. More... | |
| void | rpmtsCleanDig (rpmts ts) |
| Free signature verification data. More... | |
| void | rpmtsClean (rpmts ts) |
| Free memory needed only for dependency checks and ordering. More... | |
| void | rpmtsEmpty (rpmts ts) |
| Re-create an empty transaction set. More... | |
| rpmts | rpmtsFree (rpmts ts) |
| Destroy transaction set, closing the database as well. More... | |
| void * | rpmtsGetKeyring (rpmts ts, int autoload) |
| Get transaction keyring. More... | |
| int | rpmtsSetKeyring (rpmts ts, void *_keyring) |
| Set transaction keyring. More... | |
| rpmVSFlags | rpmtsVSFlags (rpmts ts) |
| Get verify signatures flag(s). More... | |
| rpmVSFlags | rpmtsSetVSFlags (rpmts ts, rpmVSFlags vsflags) |
| Set verify signatures flag(s). More... | |
| int | rpmtsUnorderedSuccessors (rpmts ts, int first) |
| Set index of 1st element of successors. More... | |
| const char * | rpmtsRootDir (rpmts ts) |
| Get transaction rootDir, i.e. More... | |
| void | rpmtsSetRootDir (rpmts ts, const char *rootDir) |
| Set transaction rootDir, i.e. More... | |
| const char * | rpmtsCurrDir (rpmts ts) |
| Get transaction currDir, i.e. More... | |
| void | rpmtsSetCurrDir (rpmts ts, const char *currDir) |
| Set transaction currDir, i.e. More... | |
| int | rpmtsSELinuxEnabled (rpmts ts) |
| Get selinuxEnabled flag, i.e. More... | |
| int | rpmtsChrootDone (rpmts ts) |
| Get chrootDone flag, i.e. More... | |
| int | rpmtsSetChrootDone (rpmts ts, int chrootDone) |
| Set chrootDone flag, i.e. More... | |
| rpmuint32_t | rpmtsGetTid (rpmts ts) |
| Get transaction id, i.e. More... | |
| rpmuint32_t | rpmtsSetTid (rpmts ts, rpmuint32_t tid) |
| Set transaction id, i.e. More... | |
| pgpDig | rpmtsDig (rpmts ts) |
| Get OpenPGP packet parameters, i.e. More... | |
| pgpDigParams | rpmtsPubkey (const rpmts ts) |
| Return OpenPGP pubkey constants. More... | |
| rpmdb | rpmtsGetRdb (rpmts ts) |
| Get transaction set database handle. More... | |
| rpmPRCO | rpmtsPRCO (rpmts ts) |
| Get transaction set dependencies. More... | |
| int | rpmtsInitDSI (const rpmts ts) |
| Initialize disk space info for each and every mounted file systems. More... | |
| void | rpmtsUpdateDSI (const rpmts ts, dev_t dev, rpmuint32_t fileSize, rpmuint32_t prevSize, rpmuint32_t fixupSize, int _action) |
| Update disk space info for a file. More... | |
| void | rpmtsCheckDSIProblems (const rpmts ts, const rpmte te) |
| Check a transaction element for disk space problems. More... | |
| void * | rpmtsNotify (rpmts ts, rpmte te, rpmCallbackType what, rpmuint64_t amount, rpmuint64_t total) |
| Perform transaction progress notify callback. More... | |
| int | rpmtsNElements (rpmts ts) |
| Return number of (ordered) transaction set elements. More... | |
| rpmte | rpmtsElement (rpmts ts, int ix) |
| Return (ordered) transaction set element. More... | |
| rpmprobFilterFlags | rpmtsFilterFlags (rpmts ts) |
| Get problem ignore bit mask, i.e. More... | |
| rpmtransFlags | rpmtsFlags (rpmts ts) |
| Get transaction flags, i.e. More... | |
| rpmtransFlags | rpmtsSetFlags (rpmts ts, rpmtransFlags transFlags) |
| Set transaction flags, i.e. More... | |
| rpmdepFlags | rpmtsDFlags (rpmts ts) |
| Get dependency flags, i.e. More... | |
| rpmdepFlags | rpmtsSetDFlags (rpmts ts, rpmdepFlags depFlags) |
| Set dependency flags, i.e. More... | |
| Spec | rpmtsSpec (rpmts ts) |
| Get spec control structure from transaction set. More... | |
| Spec | rpmtsSetSpec (rpmts ts, Spec spec) |
| Set a spec control structure in transaction set. More... | |
| rpmte | rpmtsRelocateElement (rpmts ts) |
| Get current relocate transaction element. More... | |
| rpmte | rpmtsSetRelocateElement (rpmts ts, rpmte relocateElement) |
| Set current relocate transaction element. More... | |
| tsmStage | rpmtsGoal (rpmts ts) |
| Retrieve goal of transaction set. More... | |
| tsmStage | rpmtsSetGoal (rpmts ts, tsmStage goal) |
| Set goal of transaction set. More... | |
| int | rpmtsDBMode (rpmts ts) |
| Retrieve dbmode of transaction set. More... | |
| int | rpmtsSetDBMode (rpmts ts, int dbmode) |
| Set dbmode of transaction set. More... | |
| rpmuint32_t | rpmtsColor (rpmts ts) |
| Retrieve color bits of transaction set. More... | |
| rpmuint32_t | rpmtsPrefColor (rpmts ts) |
| Retrieve preferred file color. More... | |
| rpmuint32_t | rpmtsSetColor (rpmts ts, rpmuint32_t color) |
| Set color bits of transaction set. More... | |
| rpmop | rpmtsOp (rpmts ts, rpmtsOpX opx) |
| Retrieve operation timestamp from a transaction set. More... | |
| int | rpmtsSetNotifyCallback (rpmts ts, rpmCallbackFunction notify, rpmCallbackData notifyData) |
| Set transaction notify callback function and argument. More... | |
| rpmts | rpmtsCreate (void) |
| Create an empty transaction set. More... | |
| int | rpmtsAddInstallElement (rpmts ts, Header h, const fnpyKey key, int upgrade, rpmRelocation relocs) |
| Add package to be installed to transaction set. More... | |
| int | rpmtsAddEraseElement (rpmts ts, Header h, uint32_t hdrNum) |
| Add package to be erased to transaction set. More... | |
Variables | |
| int | _rpmts_debug |
| int | _rpmts_macros |
| int | _rpmts_stats |
| int | _fps_debug |
| int(* | rpmtsCheck )(rpmts ts) |
| Perform dependency resolution on the transaction set. More... | |
| int(* | rpmtsOrder )(rpmts ts) |
| Determine package order in a transaction set according to dependencies. More... | |
| int(* | rpmtsRun )(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) |
| Process all package elements in a transaction set. More... | |
| int | rpmcliPackagesTotal |
Structures and prototypes used for an "rpmts" transaction set.
Definition in file rpmts.h.
| #define _noTransScripts |
Definition at line 103 of file rpmts.h.
Referenced by installArgCallback(), and main().
| #define _noTransTriggers |
Definition at line 112 of file rpmts.h.
Referenced by installArgCallback(), and main().
| #define rpmtsFree | ( | _ts | ) | ((rpmts) rpmioFreePoolItem((rpmioItem)(_ts), __FUNCTION__, __FILE__, __LINE__)) |
| #define rpmtsLink | ( | _ts, | |
| _msg | |||
| ) | ((rpmts) rpmioLinkPoolItem((rpmioItem)(_ts), _msg, __FILE__, __LINE__)) |
| #define rpmtsUnlink | ( | _ts, | |
| _msg | |||
| ) | ((rpmts) rpmioUnlinkPoolItem((rpmioItem)(_ts), _msg, __FILE__, __LINE__)) |
Definition at line 1908 of file depends.c.
References _cacheDependsRC, _free(), _rpmts_debug, checkDependentConflicts(), checkDependentPackages(), checkPackageDeps(), EVR, exit, fi, fprintf(), L, mi, NULL, p, ps, rc, rpmalMakeIndex(), rpmdbCloseDBI(), RPMDBI_DEPCACHE, RPMDEPS_FLAG_NOCONFLICTS, RPMDEPS_FLAG_NOLINKTOS, RPMDEPS_FLAG_NOPARENTDIRS, RPMDEPS_FLAG_NOREQUIRES, rpmdsEVR(), rpmdsFromPRCO(), rpmdsInit(), rpmdsN(), rpmdsNegateRC(), rpmdsNext(), rpmdsNSType(), rpmfiFN(), rpmfiInit(), rpmfiNext(), rpmlog(), RPMLOG_DEBUG, rpmmiFree(), RPMNS_TYPE_ENVVAR, RPMNS_TYPE_UNKNOWN, RPMPROB_FILTER_NONE, rpmpsFree(), rpmpsNumProblems(), rpmswEnter(), rpmswExit(), RPMTAG_BASENAMES, RPMTAG_CONFLICTNAME, RPMTAG_DIRNAMES, RPMTAG_FILELINKTOS, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, rpmteA(), rpmteColor(), rpmteDS(), rpmteFI(), rpmteNEVR(), rpmteNEVRA(), rpmteO(), RPMTS_OP_CHECK, rpmtsCloseDB(), rpmtsColor(), rpmtsDBMode(), rpmtsDFlags(), rpmtsFlags(), rpmtsGetRdb(), rpmtsiFree(), rpmtsiInit(), rpmtsiNext(), rpmtsOp(), rpmtsOpenDB(), rpmtsPRCO(), rpmtsProblems(), rpmtsRollback(), TR_ADDED, TR_REMOVED, void, xstrdup(), and xx.
| int _rpmtsRun | ( | rpmts | ts, |
| rpmps | okProbs, | ||
| rpmprobFilterFlags | ignoreSet | ||
| ) |
Definition at line 2160 of file transaction.c.
References _, _rpmts_debug, D_, exit, fprintf(), FPSDEBUG, NULL, ps, rpmExpandNumeric(), rpmlog(), RPMLOG_DEBUG, RPMLOG_ERR, rpmpsFree(), rpmpsNumProblems(), rpmpsTrim(), rpmsxFree(), RPMTAG_POSTTRANS, RPMTAG_PRETRANS, RPMTRANS_TYPE_AUTOROLLBACK, RPMTRANS_TYPE_ROLLBACK, rpmtsFinish(), rpmtsFlags(), rpmtsGetRdb(), rpmtsNElements(), rpmtsPrepare(), rpmtsProcess(), rpmtsRepackage(), rpmtsRootDir(), rpmtsRunScript(), rpmtsSanityCheck(), rpmtsSetup(), rpmtsType(), TSF_ISSET, and xx.
| int _fps_debug |
Definition at line 232 of file transaction.c.
| int rpmcliPackagesTotal |
Definition at line 63 of file rpminstall.c.
1.8.5