Files | |
file | depends.c |
file | psm.c |
Package state machine to handle a package from a transaction set. | |
file | rpmte.h |
Structures used for an "rpmte" transaction element. | |
file | rpmts.h |
Structures and prototypes used for an "rpmts" transaction set. | |
file | rpmvercmp.c |
file | transaction.c |
Functions | |
int | rpmtsCheck (rpmts ts) |
int | rpmtsOrder (rpmts ts) |
int | rpmtsRun (rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) |
rpmts | rpmtsUnlink (rpmts ts, const char *msg) |
rpmts | rpmtsLink (rpmts ts, const char *msg) |
int | rpmtsCloseDB (rpmts ts) |
int | rpmtsOpenDB (rpmts ts, int dbmode) |
int | rpmtsInitDB (rpmts ts, int dbmode) |
int | rpmtsRebuildDB (rpmts ts) |
int | rpmtsVerifyDB (rpmts ts) |
rpmdbMatchIterator | rpmtsInitIterator (const rpmts ts, rpmTag rpmtag, const void *keyp, size_t keylen) |
int | rpmtsCloseSDB (rpmts ts) |
int | rpmtsOpenSDB (rpmts ts, int dbmode) |
void | rpmtsCleanDig (rpmts ts) |
void | rpmtsClean (rpmts ts) |
void | rpmtsEmpty (rpmts ts) |
rpmts | rpmtsFree (rpmts ts) |
rpmVSFlags | rpmtsVSFlags (rpmts ts) |
rpmVSFlags | rpmtsSetVSFlags (rpmts ts, rpmVSFlags vsflags) |
int | rpmtsUnorderedSuccessors (rpmts ts, int first) |
const char * | rpmtsRootDir (rpmts ts) |
void | rpmtsSetRootDir (rpmts ts, const char *rootDir) |
const char * | rpmtsCurrDir (rpmts ts) |
void | rpmtsSetCurrDir (rpmts ts, const char *currDir) |
FD_t | rpmtsScriptFd (rpmts ts) |
void | rpmtsSetScriptFd (rpmts ts, FD_t scriptFd) |
int | rpmtsChrootDone (rpmts ts) |
int | rpmtsSetChrootDone (rpmts ts, int chrootDone) |
int_32 | rpmtsGetTid (rpmts ts) |
int_32 | rpmtsSetTid (rpmts ts, int_32 tid) |
int_32 | rpmtsSigtag (const rpmts ts) |
int_32 | rpmtsSigtype (const rpmts ts) |
const void * | rpmtsSig (const rpmts ts) |
int_32 | rpmtsSiglen (const rpmts ts) |
int | rpmtsSetSig (rpmts ts, int_32 sigtag, int_32 sigtype, const void *sig, int_32 siglen) |
pgpDig | rpmtsDig (rpmts ts) |
pgpDigParams | rpmtsSignature (const rpmts ts) |
pgpDigParams | rpmtsPubkey (const rpmts ts) |
rpmdb | rpmtsGetRdb (rpmts ts) |
int | rpmtsInitDSI (const rpmts ts) |
void | rpmtsUpdateDSI (const rpmts ts, dev_t dev, uint_32 fileSize, uint_32 prevSize, uint_32 fixupSize, fileAction action) |
void | rpmtsCheckDSIProblems (const rpmts ts, const rpmte te) |
rpmprobFilterFlags | rpmtsFilterFlags (rpmts ts) |
rpmtransFlags | rpmtsFlags (rpmts ts) |
rpmtransFlags | rpmtsSetFlags (rpmts ts, rpmtransFlags transFlags) |
int | rpmtsSetNotifyCallback (rpmts ts, rpmCallbackFunction notify, rpmCallbackData notifyData) |
rpmts | rpmtsCreate (void) |
int | rpmtsAddInstallElement (rpmts ts, Header h, const fnpyKey key, int upgrade, rpmRelocation *relocs) |
int | rpmtsAddEraseElement (rpmts ts, Header h, int dboffset) |
int | rpmtsGetKeys (rpmts ts, fnpyKey **ep, int *nep) |
|
Add package to be erased to transaction set.
Definition at line 322 of file depends.c. Referenced by rpmErase, rpmRollback, and rpmts_AddErase. |
|
Add package to be installed to transaction set. The transaction set is checked for duplicate package names. If found, the package with the "newest" EVR will be replaced.
Definition at line 127 of file depends.c. References rpmprobFilterFlags. Referenced by checkSpec, rpmGraph, rpmInstall, rpmRollback, rpmts_AddInstall, rpmtsSolve, and verifyDependencies. |
|
Check that all dependencies can be resolved.
Definition at line 1601 of file depends.c. Referenced by checkSpec, rpmErase, rpmGraph, rpmInstall, rpmRollback, rpmts_Check, and verifyDependencies. |
|
Check a transaction element for disk space problems.
|
|
Get chrootDone flag, i.e. has chroot(2) been performed?
|
|
Free memory needed only for dependency checks and ordering.
Definition at line 558 of file rpmts.c. Referenced by checkSpec, rpmcliImportPubkeys, rpmErase, rpmInstall, rpmRollback, rpmts_Clean, rpmtsEmpty, and rpmtsOrder. |
|
Free signature verification data.
Definition at line 552 of file rpmts.c. Referenced by headerCheck, rpmReadPackageFile, rpmtsClean, and rpmVerifySignatures. |
|
Close the database used by the transaction.
Definition at line 107 of file rpmts.c. References rpmds, rpmtransFlags, and rpmts. Referenced by ftsCacheUpdate, rpmts_CloseDB, rpmts_InitDB, rpmtsCheck, rpmtsFree, and rpmtsOpenDB. |
|
Close the database used by the transaction to solve dependencies.
Definition at line 287 of file rpmts.c. References rpmts. Referenced by rpmtsFree. |
|
Create an empty transaction set.
|
|
Get transaction currDir, i.e. current directory before chroot(2).
|
|
Get OpenPGP packet parameters, i.e. signature/pubkey constants.
Definition at line 850 of file rpmts.c. Referenced by headerCheck, rpmReadPackageFile, rpmtsFindPubkey, rpmtsPubkey, rpmtsSignature, rpmtsStashKeyid, rpmVerifySignature, rpmVerifySignatures, verifyGPGSignature, verifyMD5Signature, verifyPGPSignature, verifySHA1Signature, and verifySizeSignature. |
|
Re-create an empty transaction set.
Definition at line 582 of file rpmts.c. Referenced by rpmcliQuery, rpmcliVerify, rpmErase, rpmInstall, rpmQueryVerify, rpmRollback, rpmtsFree, and verifyDependencies. |
|
Get problem ignore bit mask, i.e. bits to filter encountered problems.
Definition at line 1084 of file rpmts.c. Referenced by rpmtsInitDSI. |
|
Get transaction flags, i.e. bits that control rpmtsRun().
Definition at line 1089 of file rpmts.c. Referenced by rpmErase, rpmGraph, rpmInstall, rpmtsOrder, unsatisfiedDepend, and XrpmtsiInit. |
|
Destroy transaction set, closing the database as well.
Definition at line 609 of file rpmts.c. References fileAction, int_32, rpmte, rpmts, and uint_32. Referenced by cpio_doio, main, readRPM, rpmts_dealloc, and XrpmtsiFree. |
|
Retrieve keys from ordered transaction set.
Definition at line 1114 of file rpmts.c. Referenced by rpmts_GetKeys. |
|
Get transaction set database handle.
Definition at line 879 of file rpmts.c. Referenced by checkDependentConflicts, ftsCacheUpdate, rpmcliImportPubkey, rpmtsAddInstallElement, rpmtsCheck, and unsatisfiedDepend. |
|
Get transaction id, i.e. transaction time stamp.
Definition at line 783 of file rpmts.c. Referenced by ftsCacheUpdate, and rpmcliImportPubkey. |
|
Initialize the database used by the transaction.
Definition at line 141 of file rpmts.c. Referenced by main, and rpmts_InitDB. |
|
Initialize disk space info for each and every mounted file systems.
|
|
Return transaction database iterator.
Definition at line 161 of file rpmts.c. Referenced by checkDependentConflicts, checkDependentPackages, ftsCacheUpdate, IDTXload, rpmErase, rpmInstall, rpmQueryVerify, rpmts_AddErase, rpmts_Match, rpmtsAddInstallElement, rpmtsFindPubkey, and unsatisfiedDepend. |
|
Reference a transaction set instance.
|
|
Open the database used by the transaction.
Definition at line 118 of file rpmts.c. Referenced by ftsCacheUpdate, rpmcliImportPubkey, rpmts_Match, rpmts_OpenDB, rpmtsAddInstallElement, rpmtsCheck, and rpmtsInitIterator. |
|
Open the database used by the transaction to solve dependencies.
Definition at line 298 of file rpmts.c. References int_32, rpmds, rpmRC, rpmTag, rpmts, and rpmVSFlags. Referenced by rpmtsSolve. |
|
Determine package order in a transaction set according to dependencies. Order packages, returning error if circular dependencies cannot be eliminated by removing Requires's from the loop(s). Only dependencies from added or removed packages are used to determine ordering using a topological sort (Knuth vol. 1, p. 262). Use rpmtsCheck() to verify that all dependencies can be resolved. The final order ends up as installed packages followed by removed packages, with packages removed for upgrades immediately following the new package to be installed.
Definition at line 1149 of file depends.c. Referenced by rpmGraph, rpmInstall, rpmRollback, and rpmts_Order. |
|
Get OpenPGP pubkey constants.
|
|
Rebuild the database used by the transaction.
Definition at line 146 of file rpmts.c. Referenced by main, and rpmts_RebuildDB. |
|
Get transaction rootDir, i.e. path to chroot(2).
Definition at line 687 of file rpmts.c. Referenced by rpmInstall, and rpmVerifyFile. |
|
Process all package elements in a transaction set.
Referenced by rpmErase, rpmInstall, rpmRollback, and rpmts_Run. |
|
Get transaction script file handle, i.e. stdout/stderr on scriptlet execution
|
|
Set chrootDone flag, i.e. has chroot(2) been performed?
|
|
Set transaction currDir, i.e. current directory before chroot(2).
|
|
Set transaction flags, i.e. bits that control rpmtsRun().
Definition at line 1094 of file rpmts.c. Referenced by rpmErase, rpmGraph, rpmInstall, rpmRollback, rpmts_Rollback, and rpmts_SetFlags. |
|
Set transaction notify callback function and argument.
Definition at line 1104 of file rpmts.c. Referenced by rpmErase, rpmInstall, rpmRollback, and rpmts_Run. |
|
Set transaction rootDir, i.e. path to chroot(2).
Definition at line 692 of file rpmts.c. References rpmprobFilterFlags, rpmte, rpmtransFlags, and rpmts. Referenced by main, and rpmts_Create. |
|
Set transaction script file handle, i.e. stdout/stderr on scriptlet execution
Definition at line 749 of file rpmts.c. References rpmts. Referenced by rpmts_setattr, and rpmVerifyScript. |
|
Set signature tag info, i.e. from header.
Definition at line 834 of file rpmts.c. Referenced by headerCheck, rpmReadPackageFile, and rpmVerifySignatures. |
|
Set transaction id, i.e. transaction time stamp.
Definition at line 792 of file rpmts.c. Referenced by main. |
|
Set verify signatures flag(s).
Definition at line 666 of file rpmts.c. Referenced by build, main, rpmcliQuery, rpmcliVerify, rpmErase, rpmGraph, rpmInstall, rpmInstallSource, rpmRollback, rpmts_Create, and rpmts_SetVSFlags. |
|
Get signature tag data, i.e. from header.
Definition at line 818 of file rpmts.c. Referenced by rpmtsFindPubkey, rpmtsStashKeyid, rpmVerifySignature, verifyGPGSignature, verifyMD5Signature, verifyPGPSignature, verifySHA1Signature, and verifySizeSignature. |
|
Get signature tag data length, i.e. no. of bytes of data.
Definition at line 826 of file rpmts.c. Referenced by rpmVerifySignature, verifyGPGSignature, verifyMD5Signature, verifyPGPSignature, and verifySHA1Signature. |
|
Get OpenPGP signature constants.
Definition at line 861 of file rpmts.c. Referenced by rpmtsFindPubkey, rpmtsStashKeyid, rpmVerifySignatures, verifyGPGSignature, and verifyPGPSignature. |
|
Get signature tag.
Definition at line 802 of file rpmts.c. Referenced by rpmVerifySignature, verifyGPGSignature, and verifyPGPSignature. |
|
Get signature tag type.
|
|
Unreference a transaction instance.
|
|
Set index of 1st element of successors.
Definition at line 676 of file rpmts.c. Referenced by rpmtsOrder. |
|
Update disk space info for a file.
|
|
Verify the database used by the transaction.
Definition at line 156 of file rpmts.c. References rpmte. Referenced by main, and rpmts_VerifyDB. |
|
Get verify signatures flag(s).
Definition at line 658 of file rpmts.c. Referenced by headerCheck, rpmInstallSource, and rpmReadPackageFile. |