#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include "fsm.h"
#include "psm.h"
#include "rpmdb.h"
#include "rpmds.h"
#include "rpmlock.h"
#include "rpmfi.h"
#include "rpmte.h"
#include "rpmts.h"
#include "cpio.h"
#include "fprint.h"
#include "legacy.h"
#include "misc.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMFI_INTERNAL |
#define | _RPMTE_INTERNAL |
#define | _RPMTS_INTERNAL |
#define | ISROOT(_d) (((_d)[0] == '/' && (_d)[1] == '\0') ? "" : (_d)) |
#define | NOTIFY(_ts, _al) /*@i@*/ if ((_ts)->notify) (void) (_ts)->notify _al |
Functions | |
int | archOkay (const char *pkgArch) |
int | osOkay (const char *pkgOs) |
int | sharedCmp (const void *one, const void *two) |
int | isDocFile (rpmfi fi) |
int | handleInstInstalledFiles (const rpmts ts, rpmte p, rpmfi fi, sharedFileInfo shared, int sharedCount, int reportConflicts) |
int | handleRmvdInstalledFiles (const rpmts ts, rpmfi fi, sharedFileInfo shared, int sharedCount) |
int | fpsCompare (const void *one, const void *two) |
int | findFps (const struct fingerPrint_s *fiFps, const struct fingerPrint_s *otherFps, int otherFc) |
void | handleOverlappedFiles (const rpmts ts, const rpmte p, rpmfi fi) |
Update disk space needs on each partition for this package's files. | |
int | ensureOlder (rpmts ts, const rpmte p, const Header h) |
Ensure that current package is newer than installed package. | |
void | skipFiles (const rpmts ts, rpmfi fi) |
Skip any files that do not match install policies. | |
rpmfi | rpmtsiFi (const rpmtsi tsi) |
Return transaction element's file info. | |
int | rpmtsRun (rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) |
Variables | |
int | _fps_debug = 0 |
int | _linear_fps_search = 0 |
Definition in file transaction.c.
|
Definition at line 19 of file transaction.c. |
|
Definition at line 22 of file transaction.c. |
|
Definition at line 25 of file transaction.c. |
|
Definition at line 278 of file transaction.c. Referenced by findFps(), and fpsCompare(). |
|
Definition at line 963 of file transaction.c. Referenced by rpmtsRun(). |
|
Definition at line 52 of file transaction.c. References RPM_MACHTABLE_INSTARCH, and rpmMachineScore(). |
|
Ensure that current package is newer than installed package.
Definition at line 663 of file transaction.c. References _free(), _rpmds_nopromote, alloca(), Header, hGetNEVR(), int_32, rpmds, rpmdsFree(), rpmdsNVRMatchesDep(), rpmdsSingle(), RPMPROB_OLDPACKAGE, rpmps, rpmpsAppend(), rpmpsFree(), RPMSENSE_LESS, RPMTAG_REQUIRENAME, rpmteE(), rpmteKey(), rpmteN(), rpmteNEVR(), rpmteR(), rpmteV(), rpmtsProblems(), and stpcpy(). Referenced by rpmtsRun(). |
|
Definition at line 338 of file transaction.c. References fingerPrint_s::baseName, fprintCacheEntry_s::dirName, fingerPrint_s::entry, FP_EQUAL, fpsCompare(), ISROOT, and fingerPrint_s::subDir. Referenced by handleOverlappedFiles(). |
|
Definition at line 283 of file transaction.c. References alloca(), fingerPrint_s::baseName, fprintCacheEntry_s::dirName, fingerPrint_s::entry, ISROOT, stpcpy(), and fingerPrint_s::subDir. Referenced by findFps(). |
|
Definition at line 101 of file transaction.c. References _free(), fileAction, Header, hGetNEVR(), isDocFile(), rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbMatchIterator, rpmdbNextIterator(), rpmfi, rpmfiBN(), rpmfiCompare(), rpmfiDecideFate(), rpmfiDN(), rpmfiFColor(), rpmfiFFlags(), rpmfiFree(), rpmfiFSize(), rpmfiInit(), rpmfiNew(), rpmfiNext(), rpmfiSetFX(), RPMPROB_FILE_CONFLICT, rpmps, rpmpsAppend(), rpmpsFree(), RPMTAG_BASENAMES, rpmteColor(), rpmteKey(), rpmteNEVR(), rpmtsColor(), rpmtsFlags(), rpmtsInitIterator(), rpmtsProblems(), uint_32, xcalloc(), XFA_SKIPPING, and xrealloc(). Referenced by rpmtsRun(). |
|
Update disk space needs on each partition for this package's files.
Definition at line 431 of file transaction.c. References fprintCacheEntry_s::dev, domd5(), fingerPrint_s::entry, FA_ALTNAME, findFps(), htGetEntry(), int_16, int_32, isDocFile(), rpmfi, rpmfiCompare(), rpmfiConfigConflict(), rpmfiFC(), rpmfiFColor(), rpmfiFFlags(), rpmfiFMode(), rpmfiFN(), rpmfiFSize(), rpmfiFState(), rpmfiInit(), rpmfiMD5(), rpmfiNext(), rpmfiSetFX(), RPMPROB_NEW_FILE_CONFLICT, rpmps, rpmpsAppend(), rpmpsFree(), rpmteKey(), rpmteNEVR(), rpmteType(), rpmtsColor(), rpmtsFilterFlags(), rpmtsProblems(), rpmtsUpdateDSI(), TR_ADDED, TR_REMOVED, uint_32, and XFA_SKIPPING. Referenced by rpmtsRun(). |
|
Definition at line 238 of file transaction.c. References Header, HGE_t, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbMatchIterator, rpmdbNextIterator(), RPMTAG_FILESTATES, and rpmtsInitIterator(). Referenced by rpmtsRun(). |
|
Definition at line 84 of file transaction.c. References rpmfiFN(). Referenced by handleInstInstalledFiles(), and handleOverlappedFiles(). |
|
Definition at line 61 of file transaction.c. References RPM_MACHTABLE_INSTOS, and rpmMachineScore(). |
|
Return transaction element's file info.
Definition at line 944 of file transaction.c. References rpmfi, rpmte, and rpmtsElement(). Referenced by rpmtsRun(). |
|
Definition at line 70 of file transaction.c. Referenced by rpmtsRun(). |
|
Skip any files that do not match install policies.
Definition at line 716 of file transaction.c. References _, _free(), alloca(), freeSplitString(), int_16, rpmExpand(), rpmExpandNumeric(), rpmfiBN(), rpmfiDC(), rpmfiDN(), rpmfiDX(), rpmfiFColor(), rpmfiFFlags(), rpmfiFMode(), rpmfiInit(), rpmfiInitD(), rpmfiNext(), rpmfiNextD(), RPMMESS_DEBUG, rpmMessage, rpmtsColor(), rpmtsFlags(), splitString(), uint_32, whatis(), and XFA_SKIPPING. Referenced by rpmtsRun(). |
|
Definition at line 281 of file transaction.c. |
|
Definition at line 336 of file transaction.c. |