|
Add package to be erased to transaction set.
Definition at line 322 of file depends.c. References Header, removePackage(), and RPMAL_NOMATCH. Referenced by rpmErase(), rpmRollback(), and rpmts_AddErase(). |
|
|
Check that all dependencies can be resolved.
Definition at line 1595 of file depends.c. References checkDependentConflicts(), checkDependentPackages(), checkPackageDeps(), rpmps_s::probs, rpmalMakeIndex(), rpmdbCloseDBI(), rpmdbFreeIterator(), RPMDBI_DEPENDS, rpmdbMatchIterator, rpmds, rpmdsInit(), rpmdsN(), rpmdsNext(), rpmfi, rpmfiFN(), rpmfiInit(), rpmfiNext(), RPMMESS_DEBUG, rpmMessage, rpmpsCreate(), rpmpsFree(), rpmswEnter(), rpmswExit(), RPMTAG_BASENAMES, RPMTAG_CONFLICTNAME, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, rpmte, rpmteA(), rpmteColor(), rpmteDS(), rpmteFI(), rpmteN(), rpmteNEVR(), rpmteO(), RPMTS_OP_CHECK, rpmtsCloseDB(), rpmtsColor(), rpmtsGetRdb(), rpmtsi, rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsOp(), rpmtsOpenDB(), TR_ADDED, TR_REMOVED, and uint_32. Referenced by checkSpec(), rpmErase(), rpmGraph(), rpmInstall(), rpmRollback(), rpmts_Check(), and verifyDependencies(). |
|
Check a transaction element for disk space problems.
Definition at line 1223 of file rpmts.c. References rpmfiFC(), RPMPROB_DISKNODES, RPMPROB_DISKSPACE, rpmps, rpmpsAppend(), rpmpsFree(), RPMTAG_BASENAMES, rpmteFI(), rpmteKey(), rpmteNEVR(), and rpmtsProblems(). Referenced by rpmtsRun(). |
|
Get chrootDone flag, i.e. has chroot(2) been performed?
Definition at line 956 of file rpmts.c. Referenced by rpmpsmStage(), rpmtsRun(), and runScript(). |
|
Free memory needed only for dependency checks and ordering.
Definition at line 703 of file rpmts.c. References _free(), rpmalFree(), rpmpsFree(), rpmte, rpmteCleanDS(), rpmtsCleanDig(), rpmtsi, rpmtsiFree, rpmtsiInit, and rpmtsiNext(). Referenced by checkSpec(), rpmcliImportPubkeys(), rpmErase(), rpmInstall(), rpmInstallSourcePackage(), rpmRollback(), rpmts_Clean(), rpmtsEmpty(), and rpmtsOrder(). |
|
Free signature verification data.
Definition at line 697 of file rpmts.c. References headerFreeData(), and pgpFreeDig(). Referenced by headerCheck(), rpmReadPackageFile(), rpmtsClean(), and rpmVerifySignatures(). |
|
Close the database used by the transaction.
Definition at line 133 of file rpmts.c. References rpmdbClose(), rpmswAdd(), RPMTS_OP_DBDEL, RPMTS_OP_DBGET, RPMTS_OP_DBPUT, and rpmtsOp(). Referenced by ftsCacheUpdate(), rpmts_CloseDB(), rpmts_InitDB(), rpmtsCheck(), rpmtsFree(), and rpmtsOpenDB(). |
|
Close the database used by the transaction to solve dependencies.
Definition at line 429 of file rpmts.c. References rpmdbClose(), rpmswAdd(), RPMTS_OP_DBDEL, RPMTS_OP_DBGET, RPMTS_OP_DBPUT, and rpmtsOp(). Referenced by rpmtsFree(). |
|
Create an empty transaction set.
Definition at line 1415 of file rpmts.c. References is_selinux_enabled, rpmExpandNumeric(), rpmswEnter(), rpmts, RPMTS_OP_TOTAL, rpmtsLink, rpmtsOp(), and xcalloc(). Referenced by cpio_doio(), main(), readRPM(), rpmts_Create(), and rpmts_init(). |
|
Get transaction currDir, i.e. current directory before chroot(2).
Definition at line 907 of file rpmts.c. Referenced by rpmpsmStage(), and rpmtsRun(). |
|
Get OpenPGP packet parameters, i.e. signature/pubkey constants.
Definition at line 1057 of file rpmts.c. References pgpDig, and pgpNewDig(). 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 727 of file rpmts.c. References rpmte, rpmteFree(), rpmtsClean(), rpmtsi, rpmtsiFree, rpmtsiInit, and rpmtsiNext(). 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 1297 of file rpmts.c. References rpmprobFilterFlags. Referenced by handleOverlappedFiles(), relocateFileList(), rpmtsInitDSI(), and rpmtsRun(). |
|
Get transaction flags, i.e. bits that control rpmtsRun().
Definition at line 1302 of file rpmts.c. References rpmtransFlags. Referenced by fsmMapAttrs(), fsmMapFContext(), fsmStage(), handleInstInstalledFiles(), rpmErase(), rpmInstall(), rpmpsmStage(), rpmtsOrder(), rpmtsRun(), skipFiles(), unsatisfiedDepend(), and XrpmtsiInit(). |
|
Destroy transaction set, closing the database as well.
Definition at line 791 of file rpmts.c. References _free(), fdFree, rpmalFree(), rpmsxFree(), rpmts, rpmtsCloseDB(), rpmtsCloseSDB(), rpmtsEmpty(), rpmtsPrintStats(), and rpmtsUnlink. Referenced by cpio_doio(), main(), mapFreeIterator(), readRPM(), rpmInstallSourcePackage(), rpmpsmFree(), rpmts_dealloc(), rpmts_free(), and XrpmtsiFree(). |
|
Retrieve keys from ordered transaction set.
Definition at line 1385 of file rpmts.c. References fnpyKey, rpmte, rpmteKey(), rpmteType(), rpmtsi, rpmtsiFree, rpmtsiInit, rpmtsiNext(), TR_ADDED, TR_REMOVED, and xmalloc(). Referenced by rpmts_GetKeys(). |
|
Get transaction set database handle.
Definition at line 1086 of file rpmts.c. References rpmdb. Referenced by checkDependentConflicts(), ftsCacheUpdate(), handleOneTrigger(), rpmcliImportPubkey(), rpmpsmStage(), rpmtsAddInstallElement(), rpmtsCheck(), rpmtsRun(), runTriggers(), and unsatisfiedDepend(). |
|
Get transaction id, i.e. transaction time stamp.
Definition at line 990 of file rpmts.c. References int_32. Referenced by fsmSetup(), ftsCacheUpdate(), rpmcliImportPubkey(), and rpmpsmStage(). |
|
Initialize the database used by the transaction.
Definition at line 170 of file rpmts.c. References rpmdbInit(). Referenced by main(), and rpmts_InitDB(). |
|
Initialize disk space info for each and every mounted file systems.
Definition at line 1097 of file rpmts.c. References _, _free(), rpmGetFilesystemList(), RPMMESS_DEBUG, rpmMessage, rpmtsFilterFlags(), and xcalloc(). Referenced by rpmtsRun(). |
|
Return transaction database iterator.
Definition at line 233 of file rpmts.c. References _, alloca(), headerCheck(), isArch(), RPMDBI_LABEL, rpmdbInitIterator(), rpmdbMatchIterator, rpmdbSetHdrChk(), rpmdbSetIteratorRE(), RPMERR_QFMT, rpmError, RPMMIRE_DEFAULT, RPMTAG_ARCH, rpmtsOpenDB(), and xisdigit(). Referenced by checkDependentConflicts(), checkDependentPackages(), ftsCacheUpdate(), handleInstInstalledFiles(), handleRmvdInstalledFiles(), IDTXload(), markReplacedFiles(), rpmErase(), rpmInstall(), rpmpsmStage(), rpmQueryVerify(), rpmts_AddErase(), rpmts_Match(), rpmtsAddInstallElement(), rpmtsFindPubkey(), rpmtsRun(), runImmedTriggers(), runTriggers(), and unsatisfiedDepend(). |
|
Reference a transaction set instance.
|
|
Open the database used by the transaction.
Definition at line 147 of file rpmts.c. References _, _free(), rpmdbOpen(), rpmGetPath(), RPMMESS_ERROR, rpmMessage, and rpmtsCloseDB(). Referenced by ftsCacheUpdate(), rpmcliImportPubkey(), rpmts_Match(), rpmts_OpenDB(), rpmtsAddInstallElement(), rpmtsCheck(), rpmtsInitIterator(), and rpmtsRun(). |
|
Open the database used by the transaction to solve dependencies.
Definition at line 443 of file rpmts.c. References _, _free(), addMacro(), delMacro(), RMIL_DEFAULT, rpmdbOpen(), rpmExpandNumeric(), rpmGetPath(), RPMMESS_WARNING, and rpmMessage. 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 1154 of file depends.c. References _, _free(), addQ(), addRelation(), alKey, alloca(), freeBadDeps(), int_32, isErasePreReq, isInstallPreReq, isLegacyPreReq, markLoop(), orderListIndex, orderListIndexCmp(), orderListIndex_s::orIndex, orderListIndex_s::pkgKey, rpmalMakeIndex(), rpmds, rpmdsFlags(), rpmdsInit(), rpmdsNext(), RPMMESS_DEBUG, RPMMESS_ERROR, rpmMessage, rpmswEnter(), rpmswExit(), RPMTAG_REQUIRENAME, rpmte, rpmteAddedKey(), rpmteDegree(), rpmteDependsOnKey(), rpmteDepth(), rpmteDS(), rpmteFreeTSI(), rpmteNEVR(), rpmteNewTSI(), rpmteNpreds(), rpmtePkgFileSize(), rpmteSetDegree(), rpmteSetDepth(), rpmteSetNpreds(), rpmteSetParent(), rpmteSetTree(), rpmteTree(), rpmteTSI(), rpmteType(), RPMTS_OP_ORDER, rpmtsClean(), rpmtsFlags(), rpmtsi, rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsiOc(), rpmtsOp(), rpmtsUnorderedSuccessors(), stpcpy(), TR_ADDED, TR_REMOVED, tsortInfo, xcalloc(), and zapRelation(). Referenced by rpmErase(), rpmGraph(), rpmInstall(), rpmRollback(), and rpmts_Order(). |
|
Get OpenPGP pubkey constants.
Definition at line 1077 of file rpmts.c. References pgpDig, pgpDigParams, pgpDig_s::pubkey, and rpmtsDig(). |
|
Rebuild the database used by the transaction.
Definition at line 180 of file rpmts.c. References headerCheck(), and rpmdbRebuild(). Referenced by main(), and rpmts_RebuildDB(). |
|
Get file security context patterns.
Definition at line 973 of file rpmts.c. References rpmsx, and rpmsxLink. Referenced by fsmMapFContext(), fsmMkdirs(), rpmcliQuery(), rpmcliVerify(), rpmInstall(), rpmts_Run(), and rpmVerifyFile(). |
|
Get current relocate transaction element.
Definition at line 1333 of file rpmts.c. References rpmte. Referenced by relocateFileList(), and rpmfiNew(). |
|
Get transaction rootDir, i.e. path to chroot(2).
Definition at line 874 of file rpmts.c. Referenced by rpmInstall(), rpmInstallSourcePackage(), rpmpsmStage(), rpmtsRun(), rpmVerifyFile(), and runScript(). |
|
Process all package elements in a transaction set.
Definition at line 938 of file transaction.c. References _, _free(), _noTransScripts, _noTransTriggers, alKey, archOkay(), currentDirectory(), dbiFreeIndexSet(), dbiIndexRecordFileNumber(), dbiIndexRecordOffset(), dbiIndexSet, dbiIndexSetCount(), ensureOlder(), rpmpsm_s::fd, rpmpsm_s::fi, fileAction, fingerPrintCache, fpCacheCreate(), fpCacheFree(), fpEqual(), fpHashFunction(), fpLookupList(), handleInstInstalledFiles(), handleOverlappedFiles(), handleRmvdInstalledFiles(), Header, headerFree(), fprintCache_s::ht, htAddEntry(), htCreate(), htFree(), int_32, NOTIFY, osOkay(), rpmps_s::probs, PSM_PKGERASE, PSM_PKGINSTALL, PSM_PKGSAVE, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, RPMCALLBACK_REPACKAGE_PROGRESS, RPMCALLBACK_REPACKAGE_START, RPMCALLBACK_REPACKAGE_STOP, RPMCALLBACK_TRANS_PROGRESS, RPMCALLBACK_TRANS_START, RPMCALLBACK_TRANS_STOP, rpmdbCheckSignals(), rpmdbFindFpList(), rpmdbFreeIterator(), rpmdbMatchIterator, rpmdbNextIterator(), rpmdbSetIteratorRE(), rpmdbSync(), rpmfi, rpmfiFC(), rpmfiFree(), rpmfiInit(), rpmfiLink, rpmfiNew(), rpmfiNext(), RPMMESS_DEBUG, rpmMessage, RPMMIRE_STRCMP, RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_FILTER_REPLACEOLDFILES, RPMPROB_PKG_INSTALLED, rpmps, rpmpsAppend(), rpmpsCreate(), rpmpsFree(), rpmpsm, rpmpsmFree(), rpmpsmNew(), rpmpsmStage(), rpmpsTrim(), rpmRC, RPMRC_NOKEY, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadPackageFile(), rpmswEnter(), rpmswExit(), RPMTAG_ARCH, RPMTAG_BASENAMES, RPMTAG_EPOCH, RPMTAG_NAME, RPMTAG_OS, RPMTAG_RELEASE, RPMTAG_VERSION, rpmte, rpmteA(), rpmteAddedKey(), rpmteColor(), rpmteDBOffset(), rpmteDependsOnKey(), rpmteE(), rpmteFd(), rpmteKey(), rpmteN(), rpmteNEVR(), rpmteO(), rpmteR(), rpmteType(), rpmteV(), RPMTRANS_FLAG_DIRSTASH, RPMTS_OP_ERASE, RPMTS_OP_FINGERPRINT, RPMTS_OP_INSTALL, RPMTS_OP_REPACKAGE, rpmtsCheckDSIProblems(), rpmtsChrootDone(), rpmtsColor(), rpmtsCurrDir(), rpmtsFilterFlags(), rpmtsFlags(), rpmtsGetRdb(), rpmtsi, rpmtsiFi(), rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsInitDSI(), rpmtsInitIterator(), rpmtsiOc(), rpmtsNElements(), rpmtsOp(), rpmtsOpenDB(), rpmtsProblems(), rpmtsRootDir(), rpmtsSetChrootDone(), rpmtsSetCurrDir(), rpmtsSetFlags(), rpmtsSetRelocateElement(), rpmtsSetTid(), rpmtsSetVSFlags(), rpmtsUnorderedSuccessors(), rpmtsVSFlags(), rpmVSFlags, sharedCmp(), skipFiles(), rpmpsm_s::te, TR_ADDED, TR_REMOVED, uint_32, rpmpsm_s::unorderedSuccessor, xcalloc(), XFA_SKIPPING, and xmalloc(). Referenced by rpmErase(), rpmInstall(), rpmRollback(), and rpmts_Run(). |
|
Get transaction script file handle, i.e. stdout/stderr on scriptlet execution
Definition at line 925 of file rpmts.c. References FD_t. Referenced by runScript(). |
|
Get selinuxEnabled flag, i.e. is SE linux enabled?
Definition at line 951 of file rpmts.c. Referenced by fsmMapFContext(), rpmVerifyFile(), runScript(), and verifyHeader(). |
|
Set chrootDone flag, i.e. has chroot(2) been performed?
Definition at line 961 of file rpmts.c. Referenced by rpmpsmStage(), and rpmtsRun(). |
|
Set transaction currDir, i.e. current directory before chroot(2).
Definition at line 916 of file rpmts.c. References _free(), and xstrdup(). Referenced by rpmtsRun(). |
|
Set transaction flags, i.e. bits that control rpmtsRun().
Definition at line 1307 of file rpmts.c. References rpmtransFlags. Referenced by rpmErase(), rpmInstall(), rpmRollback(), rpmts_Rollback(), rpmts_SetFlags(), and rpmtsRun(). |
|
Set transaction notify callback function and argument.
Definition at line 1375 of file rpmts.c. Referenced by rpmErase(), rpmInstall(), rpmRollback(), and rpmts_Run(). |
|
Get file security context patterns.
Definition at line 978 of file rpmts.c. References rpmsxFree(), and rpmsxLink. Referenced by rpmcliQuery(), rpmcliVerify(), rpmInstall(), and rpmts_Run(). |
|
Set current relocate transaction element.
Definition at line 1340 of file rpmts.c. References rpmte. Referenced by addTE(), and rpmtsRun(). |
|
Set transaction rootDir, i.e. path to chroot(2).
Definition at line 879 of file rpmts.c. References _free(), alloca(), stpcpy(), and xstrdup(). Referenced by main(), rpmts_Create(), and rpmts_init(). |
|
Set transaction script file handle, i.e. stdout/stderr on scriptlet execution
Definition at line 936 of file rpmts.c. References FD_t, fdFree, and fdLink. Referenced by rpmts_setattro(), and rpmVerifyScript(). |
|
Set signature tag info, i.e. from header.
Definition at line 1041 of file rpmts.c. References headerFreeData(). Referenced by headerCheck(), rpmReadPackageFile(), and rpmVerifySignatures(). |
|
Set a spec control structure in transaction set.
Definition at line 1324 of file rpmts.c. References Spec. Referenced by buildForTarget(), parseSpec(), and rpmspecQuery(). |
|
Set transaction id, i.e. transaction time stamp.
Definition at line 999 of file rpmts.c. References int_32. Referenced by main(), and rpmtsRun(). |
|
Set verify signatures flag(s).
Definition at line 853 of file rpmts.c. References rpmVSFlags. Referenced by build(), main(), rpmcliQuery(), rpmcliVerify(), rpmErase(), rpmGraph(), rpmInstall(), rpmRollback(), rpmts_Create(), rpmts_init(), rpmts_SetVSFlags(), and rpmtsRun(). |
|
Get signature tag data, i.e. from header.
Definition at line 1025 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 1033 of file rpmts.c. References int_32. Referenced by rpmVerifySignature(), verifyGPGSignature(), verifyMD5Signature(), verifyPGPSignature(), and verifySHA1Signature(). |
|
Get OpenPGP signature constants.
Definition at line 1068 of file rpmts.c. References pgpDig, pgpDigParams, rpmtsDig(), and pgpDig_s::signature. Referenced by rpmtsFindPubkey(), rpmtsStashKeyid(), rpmVerifySignatures(), verifyGPGSignature(), and verifyPGPSignature(). |
|
Get signature tag.
Definition at line 1009 of file rpmts.c. References int_32. Referenced by rpmVerifySignature(), verifyGPGSignature(), and verifyPGPSignature(). |
|
Get signature tag type.
Definition at line 1017 of file rpmts.c. References int_32. |
|
Get spec control structure from transaction set.
Definition at line 1317 of file rpmts.c. References Spec. |
|
Unreference a transaction instance.
|
|
Set index of 1st element of successors.
Definition at line 863 of file rpmts.c. Referenced by rpmtsOrder(), and rpmtsRun(). |
|
Update disk space info for a file.
Definition at line 1173 of file rpmts.c. References FA_ALTNAME, FA_BACKUP, FA_CREATE, FA_ERASE, FA_SAVE, and uint_32. Referenced by handleOverlappedFiles(). |
|
Verify the database used by the transaction.
Definition at line 193 of file rpmts.c. References rpmdbVerify(). Referenced by main(), and rpmts_VerifyDB(). |
|
Get verify signatures flag(s).
Definition at line 845 of file rpmts.c. References rpmVSFlags. Referenced by headerCheck(), rpmpsmStage(), rpmReadPackageFile(), and rpmtsRun(). |