#include "rpmio.h"
#include "rpmmessages.h"
#include "rpmerr.h"
#include "header.h"
#include "popt.h"
Go to the source code of this file.
Definition in file rpmlib.h.
|
Value: (\ RPMSENSE_INTERP | \ RPMSENSE_SCRIPT_PRE | \ RPMSENSE_SCRIPT_POST | \ RPMSENSE_SCRIPT_PREUN | \ RPMSENSE_SCRIPT_POSTUN | \ RPMSENSE_SCRIPT_VERIFY | \ RPMSENSE_FIND_REQUIRES | \ RPMSENSE_SCRIPT_PREP | \ RPMSENSE_SCRIPT_BUILD | \ RPMSENSE_SCRIPT_INSTALL | \ RPMSENSE_SCRIPT_CLEAN | \ RPMSENSE_RPMLIB | \ RPMSENSE_KEYRING ) Definition at line 481 of file rpmlib.h. Referenced by addReqProv(). |
|
|
|
|
|
Definition at line 496 of file rpmlib.h. Referenced by identifyDepend(). |
|
Value: ( RPMTRANS_FLAG_NOPRE | \ RPMTRANS_FLAG_NOPOST | \ RPMTRANS_FLAG_NOPREUN | \ RPMTRANS_FLAG_NOPOSTUN \ ) Definition at line 1426 of file rpmlib.h. Referenced by main(), and rpmRunTransactions(). |
|
Value: ( RPMTRANS_FLAG_NOTRIGGERPREIN | \ RPMTRANS_FLAG_NOTRIGGERIN | \ RPMTRANS_FLAG_NOTRIGGERUN | \ RPMTRANS_FLAG_NOTRIGGERPOSTUN \ ) Definition at line 1433 of file rpmlib.h. Referenced by main(), and rpmRunTransactions(). |
|
Definition at line 479 of file rpmlib.h. Referenced by addReqProv(), alMakeIndex(), checkPackageDeps(), mergeFiles(), and printDepMsg(). |
|
Definition at line 504 of file rpmlib.h. Referenced by rpmdepOrder(). |
|
Definition at line 429 of file rpmlib.h. Referenced by alAllFileSatisfiesDepend(), and relocateFileList(). |
|
Definition at line 503 of file rpmlib.h. Referenced by rpmdbAdd(), and rpmdepOrder(). |
|
Definition at line 502 of file rpmlib.h. Referenced by identifyDepend(), and rpmdepOrder(). |
|
No. of arch/os tables. Definition at line 557 of file rpmlib.h. Referenced by doReadRC(), and rpmFreeRpmrc(). |
|
Added package headers. Definition at line 207 of file rpmlib.h. Referenced by openDatabase(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbRemove(), tagName(), and tagValue(). |
|
Available package headers. Definition at line 209 of file rpmlib.h. Referenced by openDatabase(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbRemove(), tagName(), and tagValue(). |
|
Dependency resolution cache. Definition at line 205 of file rpmlib.h. Referenced by openDatabase(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbRemove(), rpmdepCheck(), tagName(), tagValue(), and unsatisfiedDepend(). |
|
Fingerprint search marker. Definition at line 206 of file rpmlib.h. Referenced by rpmdbInitIterator(), rpmErase(), rpmQueryVerify(), and rpmtransRemove(). |
|
Pseudo-tags used by the rpmdb iterator API. Installed package headers. Definition at line 204 of file rpmlib.h. Referenced by addLostFiles(), db1basename(), db1cdel(), db1cget(), db1close(), db1cput(), db1open(), db1sync(), dbiDel(), dbiFindMatches(), dbiTagsInit(), handleInstInstalledFiles(), handleRmvdInstalledFiles(), main(), markReplacedFiles(), openDatabase(), psmStage(), rpmdbAdd(), rpmdbFindByFile(), rpmdbFirst(), rpmdbFreeIterator(), rpmdbInitIterator(), rpmdbLength(), rpmdbNextIterator(), rpmdbRebuild(), rpmdbRemove(), rpmdbSubscript(), rpmdepCheck(), rpmQueryVerify(), rpmRunTransactions(), tagName(), and tagValue(). |
|
Removed package headers. Definition at line 208 of file rpmlib.h. Referenced by openDatabase(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbRemove(), tagName(), and tagValue(). |
|
Definition at line 426 of file rpmlib.h. Referenced by main(). |
|
Definition at line 423 of file rpmlib.h. Referenced by processPackageFiles(). |
|
Definition at line 424 of file rpmlib.h. Referenced by addFile(), and genCpioListAndHeader(). |
|
Definition at line 422 of file rpmlib.h. Referenced by genCpioListAndHeader(). |
|
Definition at line 1555 of file rpmlib.h. Referenced by packageBinaries(), psmStage(), and writeRPM(). |
|
Definition at line 1558 of file rpmlib.h. Referenced by readPackageHeaders(), and writeLead(). |
|
Definition at line 1559 of file rpmlib.h. Referenced by readPackageHeaders(), and writeLead(). |
|
Definition at line 1560 of file rpmlib.h. Referenced by readPackageHeaders(), and writeLead(). |
|
Definition at line 1561 of file rpmlib.h. Referenced by readPackageHeaders(), and writeLead(). |
|
Don't rely on sizeof(struct) |
|
Definition at line 1556 of file rpmlib.h. Referenced by packageSources(), readPackageHeaders(), rewriteRPM(), rpmReadPackageHeader(), and writeRPM(). |
|
Definition at line 473 of file rpmlib.h. Referenced by addReqProv(), headerMatchesDepFlags(), mergeFiles(), parseRCPOT(), printDepend(), printDepMsg(), rangeMatchesDepFlags(), rpmRangesOverlap(), triggercondsTag(), and unsatisfiedDepend(). |
|
Definition at line 476 of file rpmlib.h. Referenced by addReqProv(). |
|
|
|
Definition at line 390 of file rpmlib.h. Referenced by convertExistingAMD(), and main(). |
|
|
|
|
|
|
|
Definition at line 513 of file rpmlib.h. Referenced by doReadRC(). |
|
Definition at line 514 of file rpmlib.h. Referenced by doReadRC(), and rpmReadRC(). |
|
Definition at line 516 of file rpmlib.h. Referenced by rpmFreeRpmrc(). |
|
Definition at line 511 of file rpmlib.h. Referenced by rpmRebuildTargetVars(), and setDefaults(). |
|
Definition at line 512 of file rpmlib.h. Referenced by doReadRC(), and unsatisfiedDepend(). |
|
Definition at line 1669 of file rpmlib.h. Referenced by processPackageFiles(), processSourceFiles(), and rpmVerifyFile(). |
|
Definition at line 1199 of file rpmlib.h. Referenced by dnlInitIterator(), fsmCommitLinks(), fsmMakeLinks(), fsmStage(), handleInstInstalledFiles(), handleOverlappedFiles(), rpmRunTransactions(), and skipFiles(). |
|
File disposition(s) during package install/erase transaction.
|
|
File types. These are the file types used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header. The values are arbitrary, but are identical to the linux stat(2) file types. |
|
Prototype for headerAddEntry() vector. Duplicate tags are okay, but only defined for iteration (with the exceptions noted below). While you are allowed to add i18n string arrays through this function, you probably don't mean to. See headerAddI18NString() instead.
|
|
Prototype for headerFreeData() vector.
|
|
Prototype for headerGetEntry() vector. Will never return RPM_I18NSTRING_TYPE! RPM_STRING_TYPE elements with RPM_I18NSTRING_TYPE equivalent entries are translated (if HEADER_I18NTABLE entry is present).
|
|
Prototype for headerModifyEntry() vector. If there are multiple entries with this tag, the first one gets replaced.
|
|
Prototype for headerRemoveEntry() vector. Delete tag in header. Removes all entries of type tag from the header, returns 1 if none were found.
|
|
Dependency problems found by rpmdepCheck().
|
|
File Attributes.
|
|
File States (when installed).
|
|
|
|
|
|
|
|
Enumerate transaction set problem types.
|
|
Package read return codes.
|
|
We pass these around as an array with a sentinel.
|
|
Dependency Attributes.
|
|
Tags identify data in package headers.
|
|
Return codes from verifySignature().
|
|
File disposition(s) during package install/erase transaction.
|
|
File types. These are the file types used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header. The values are arbitrary, but are identical to the linux stat(2) file types. |
|
File Attributes.
|
|
File States (when installed).
|
|
|
|
|
Package read return codes.
|
|
Dependency Attributes.
|
|
Tags identify data in package headers.
|
|
Return codes from verifySignature().
|
|
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
|
|
Release storage used by file system usage cache.
Definition at line 26 of file fs.c. References _free(), filesystems, fsnames, fsinfo::mntPoint, and numFilesystems. Referenced by getFilesystemList(), and main(). |
|
Definition at line 19 of file problems.c. References RPMSENSE_EQUAL, RPMSENSE_GREATER, and RPMSENSE_LESS. Referenced by printDepProblems(), and rpmShowRpmlibProvides(). |
|
Print results of rpmdepCheck() dependency check.
Definition at line 61 of file problems.c. References _, printDepFlags(), and sameProblem(). Referenced by checkSpec(), rpmErase(), rpmInstall(), and rpmRollback(). |
|
Retrieve file names from header. The representation of file names in package headers changed in rpm-4.0. Originally, file names were stored as an array of paths. In rpm-4.0, file names are stored as separate arrays of dirname's and basename's, with a dirname index to associate the correct dirname with each basname. This function is used to retrieve file names independent of how the file names are represented in the package header.
Definition at line 459 of file misc.c. References doBuildFileList(), RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, and RPMTAG_DIRNAMES. Referenced by filenamesTag(), fssizesTag(), mungeFilelist(), psmStage(), rpmHeaderGetEntry(), rpmInstallSourcePackage(), and verifyHeader(). |
|
Return (cached) file system mount points.
Definition at line 231 of file fs.c. References fsnames, getFilesystemList(), and numFilesystems. Referenced by fsnamesTag(), fssizesTag(), and rpmRunTransactions(). |
|
Determine per-file system usage for a list of files.
Definition at line 243 of file fs.c. References _, _free(), alloca(), errno, filesystems, fsnames, getFilesystemList(), numFilesystems, RPMERR_BADDEV, RPMERR_STAT, rpmError, rpmGetPath(), strerror(), and xcalloc(). Referenced by fssizesTag(). |
|
Retrieve tag info from header. This is a "dressed" entry to headerGetEntry to do: 1) DIRNAME/BASENAME/DIRINDICES -> FILENAMES tag conversions. 2) i18n lookaside (if enabled).
Definition at line 627 of file misc.c. References headerGetEntry(), headerSprintf(), RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmBuildFileList(), rpmHeaderFormats, RPMTAG_DESCRIPTION, RPMTAG_GROUP, RPMTAG_OLDFILENAMES, RPMTAG_SUMMARY, rpmTagTable, stpcpy(), and tagName(). Referenced by rpmPackageGetEntry(). |
|
Install source package.
Definition at line 612 of file psm.c. References _, _free(), transactionFileInfo_s::actions, rpmTransactionSet_s::addedPackages, transactionFileInfo_s::ap, transactionFileInfo_s::apath, transactionFileInfo_s::astriplen, transactionFileInfo_s::bnl, chkdir(), CPIO_MAP_GID, CPIO_MAP_MODE, CPIO_MAP_PATH, CPIO_MAP_UID, transactionFileInfo_s::dc, transactionFileInfo_s::dil, transactionFileInfo_s::dnl, FA_CREATE, transactionFileInfo_s::fc, transactionFileInfo_s::fflags, transactionFileInfo_s::fgids, transactionFileInfo_s::fmapflags, transactionFileInfo_s::fmd5s, freeFi(), transactionFileInfo_s::fuids, transactionFileInfo_s::gid, transactionFileInfo_s::h, headerFree(), headerIsEntry(), transactionFileInfo_s::hfd, transactionFileInfo_s::hge, availableList_s::list, loadFi(), transactionFileInfo_s::mapflags, rpmTransactionSet_s::notify, rpmTransactionSet_s::notifyData, PSM_FINI, PSM_PKGINSTALL, PSM_PROCESS, psmStage(), rpmTransactionSet_s::rootDir, rpmBuildFileList(), RPMERR_NOSPEC, RPMERR_NOTSRPM, rpmError, RPMFILE_SPECFILE, rpmGenPath(), rpmInstallLoadMacros(), RPMRC_FAIL, RPMRC_OK, rpmReadPackageHeader(), RPMTAG_COOKIE, rpmtransAddPackage(), rpmtransCreateSet(), rpmtransFree(), stpcpy(), transactionFileInfo_s::striplen, transactionFileInfo_s::type, transactionFileInfo_s::uid, xcalloc(), xmalloc(), and xstrdup(). Referenced by rpmInstall(), and rpmInstallSource(). |
|
Retrieve tag info from header. Yet Another "dressed" entry to headerGetEntry in order to unify signature/header tag retrieval.
Definition at line 678 of file misc.c. References headerGetEntry(), headerIsEntry(), rpmHeaderGetEntry(), RPMSIGTAG_GPG, RPMSIGTAG_LEMD5_1, RPMSIGTAG_LEMD5_2, RPMSIGTAG_MD5, RPMSIGTAG_PGP, RPMSIGTAG_SIZE, RPMTAG_SIGGPG, RPMTAG_SIGLEMD5_1, RPMTAG_SIGLEMD5_2, RPMTAG_SIGMD5, RPMTAG_SIGPGP, RPMTAG_SIGPGP5, and RPMTAG_SIGSIZE. Referenced by hdrSubscript(). |
|
Output formatted string representation of problem to file handle.
Definition at line 202 of file problems.c. References _free(), and rpmProblemString(). Referenced by rpmProblemSetPrint(). |
|
Destroy problem set.
Definition at line 256 of file transaction.c. References _free(), rpmProblem_s::altNEVR, rpmProblem_s::h, headerFree(), rpmProblem_s::pkgNEVR, rpmProblemSet_s::probs, and rpmProblem_s::str1. Referenced by rpmInstall(), rpmRollback(), and rpmtransRun(). |
|
Print problems to file handle.
Definition at line 209 of file problems.c. References rpmProblem_s::ignoreProblem, rpmProblemSet_s::probs, and rpmProblemPrint(). Referenced by rpmInstall(), and rpmRollback(). |
|
Return formatted string representation of problem.
Definition at line 114 of file problems.c. References _, rpmProblem_s::altNEVR, rpmProblem_s::pkgNEVR, RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_BADPRETRANS, RPMPROB_BADRELOCATE, RPMPROB_CONFLICT, RPMPROB_DISKNODES, RPMPROB_DISKSPACE, RPMPROB_FILE_CONFLICT, RPMPROB_NEW_FILE_CONFLICT, RPMPROB_OLDPACKAGE, RPMPROB_PKG_INSTALLED, RPMPROB_REQUIRES, snprintf(), rpmProblem_s::str1, strerror(), rpmProblem_s::type, rpmProblem_s::ulong1, and xmalloc(). Referenced by rpmProblemPrint(), and rpmtransRun(). |
|
Return package header and lead info from file handle.
Definition at line 249 of file package.c. References headerMergeLegacySigs(), rpmlead::major, major, rpmlead::minor, minor, readPackageHeaders(), rpmFreeSignature(), RPMLEAD_SOURCE, RPMRC_OK, and rpmlead::type. Referenced by IDTXglob(), main(), rpmInstall(), rpmInstallSourcePackage(), rpmQueryVerify(), and rpmRunTransactions(). |
|
Return package signatures and header from file handle.
Definition at line 237 of file package.c. References headerMergeLegacySigs(), readPackageHeaders(), and RPMRC_OK. Referenced by readRPM(), and rpmHeaderFromPackage(). |
|
Return exit code from running verify script from header.
Definition at line 279 of file verify.c. References _free(), fdLink, freeFi(), loadFi(), transactionFileInfo_s::magic, PSM_SCRIPT, psmStage(), RPMTAG_VERIFYSCRIPT, RPMTAG_VERIFYSCRIPTPROG, rpmtransCreateSet(), rpmtransFree(), rpmTransactionSet_s::scriptFd, TFIMAGIC, and xcalloc(). Referenced by showVerifyPackage(). |
|
Compare headers to determine which header is "newer".
Definition at line 36 of file psm.c. References headerGetEntry(), RPMTAG_EPOCH, RPMTAG_RELEASE, RPMTAG_VERSION, and rpmvercmp(). Referenced by alAddPackage(), ensureOlder(), findUpgradePackages(), pkgCompareVer(), rpmInstall(), rpmtransAddPackage(), unmarkPackagesAlreadyInstalled(), and versionCompare(). |
|
Return name of tag from value.
Definition at line 10 of file tagName.c. References RPMDBI_ADDED, RPMDBI_AVAILABLE, RPMDBI_DEPENDS, RPMDBI_PACKAGES, RPMDBI_REMOVED, rpmTagTable, rpmTagTableSize, and xtolower(). |
|
Return value of tag from name.
Definition at line 53 of file tagName.c. References headerTagTableEntry_s::name, RPMDBI_ADDED, RPMDBI_AVAILABLE, RPMDBI_DEPENDS, RPMDBI_PACKAGES, RPMDBI_REMOVED, rpmTagTable, headerTagTableEntry_s::val, and xstrcasecmp(). Referenced by dbiTagsInit(). |
|
Definition at line 66 of file macro.c. Referenced by main(), and rpmInitMacros(). |
|
Definition at line 526 of file depends.c. Referenced by printVersion(). |
|
|
|
Definition at line 61 of file macro.c. Referenced by addMacro(), delMacro(), expandMacros(), findEntry(), newSpec(), rpmDefineMacro(), rpmDumpMacroTable(), rpmFreeMacros(), rpmInitMacros(), and rpmLoadMacros(). |
|
Table of query format extensions.
Definition at line 719 of file formats.c. Referenced by hdrSprintf(), hdrSubscript(), initrpm(), packageBinaries(), printNewSpecfile(), psmStage(), queryHeader(), rpmDisplayQueryTags(), rpmHeaderGetEntry(), and rpmShowProgress(). |
|
|
|
Automatically generated table of tag name/value pairs.
Definition at line 4 of file tagtable.c. Referenced by getTagString(), getTagVal(), hdrSprintf(), initrpm(), main(), packageBinaries(), printNewSpecfile(), psmStage(), queryHeader(), rpmDisplayQueryTags(), rpmHeaderGetEntry(), rpmShowProgress(), tagName(), tagNumFromPyObject(), and tagValue(). |
|
Number of entries in rpmTagTable.
Definition at line 115 of file tagtable.c. Referenced by initrpm(), rpmDisplayQueryTags(), tagName(), and tagNumFromPyObject(). |
|
Definition at line 10 of file misc.c. Referenced by armorFormat(). |