rpmts.h
Go to the documentation of this file.
#ifndef H_RPMTS
#define H_RPMTS
#include <sys/types.h>
#include <rpm/rpmtypes.h>
#include <rpm/rpmte.h>
#include <rpm/rpmps.h>
#include <rpm/rpmsw.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmfi.h>
#include <rpm/rpmcallback.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int _rpmts_stats;
enum rpmtransFlags_e {
RPMTRANS_FLAG_NONE = 0,
RPMTRANS_FLAG_TEST = (1 << 0),
RPMTRANS_FLAG_BUILD_PROBS = (1 << 1),
RPMTRANS_FLAG_NOSCRIPTS = (1 << 2),
RPMTRANS_FLAG_JUSTDB = (1 << 3),
RPMTRANS_FLAG_NOTRIGGERS = (1 << 4),
RPMTRANS_FLAG_NODOCS = (1 << 5),
RPMTRANS_FLAG_ALLFILES = (1 << 6),
RPMTRANS_FLAG_NOPLUGINS = (1 << 7),
RPMTRANS_FLAG_NOCONTEXTS = (1 << 8),
RPMTRANS_FLAG_NOCAPS = (1 << 9),
/* bits 10-15 unused */
RPMTRANS_FLAG_NOTRIGGERPREIN= (1 << 16),
RPMTRANS_FLAG_NOPRE = (1 << 17),
RPMTRANS_FLAG_NOPOST = (1 << 18),
RPMTRANS_FLAG_NOTRIGGERIN = (1 << 19),
RPMTRANS_FLAG_NOTRIGGERUN = (1 << 20),
RPMTRANS_FLAG_NOPREUN = (1 << 21),
RPMTRANS_FLAG_NOPOSTUN = (1 << 22),
RPMTRANS_FLAG_NOTRIGGERPOSTUN = (1 << 23),
RPMTRANS_FLAG_NOPRETRANS = (1 << 24),
RPMTRANS_FLAG_NOPOSTTRANS = (1 << 25),
/* bit 26 unused */
RPMTRANS_FLAG_NOMD5 = (1 << 27),
RPMTRANS_FLAG_NOFILEDIGEST = (1 << 27),
/* bits 28-29 unused */
RPMTRANS_FLAG_NOCONFIGS = (1 << 30),
RPMTRANS_FLAG_DEPLOOPS = (1 << 31)
};
typedef rpmFlags rpmtransFlags;
#define _noTransScripts \
( RPMTRANS_FLAG_NOPRE | \
RPMTRANS_FLAG_NOPOST | \
RPMTRANS_FLAG_NOPREUN | \
RPMTRANS_FLAG_NOPOSTUN | \
RPMTRANS_FLAG_NOPRETRANS | \
RPMTRANS_FLAG_NOPOSTTRANS \
)
#define _noTransTriggers \
( RPMTRANS_FLAG_NOTRIGGERPREIN | \
RPMTRANS_FLAG_NOTRIGGERIN | \
RPMTRANS_FLAG_NOTRIGGERUN | \
RPMTRANS_FLAG_NOTRIGGERPOSTUN \
)
/* Avoid unnecessary breakage for stuff referring to these unused flags */
#define RPMTRANS_FLAG_NOPAYLOAD 0
#define RPMTRANS_FLAG_APPLYONLY 0
#define RPMTRANS_FLAG_KEEPOBSOLETE 0
#define RPMTRANS_FLAG_DIRSTASH 0
#define RPMTRANS_FLAG_REPACKAGE 0
#define RPMTRANS_FLAG_PKGCOMMIT 0
#define RPMTRANS_FLAG_PKGUNDO 0
#define RPMTRANS_FLAG_COMMIT 0
#define RPMTRANS_FLAG_UNDO 0
#define RPMTRANS_FLAG_REVERSE 0
#define RPMTRANS_FLAG_NOSUGGEST 0
#define RPMTRANS_FLAG_ADDINDEPS 0
enum rpmVSFlags_e {
RPMVSF_DEFAULT = 0,
RPMVSF_NOHDRCHK = (1 << 0),
RPMVSF_NEEDPAYLOAD = (1 << 1),
/* bit(s) 2-7 unused */
RPMVSF_NOSHA1HEADER = (1 << 8),
RPMVSF_NOSHA256HEADER = (1 << 9),
RPMVSF_NODSAHEADER = (1 << 10),
RPMVSF_NORSAHEADER = (1 << 11),
/* bit(s) 12-15 unused */
RPMVSF_NOPAYLOAD = (1 << 16),
RPMVSF_NOMD5 = (1 << 17),
RPMVSF_NODSA = (1 << 18),
RPMVSF_NORSA = (1 << 19)
/* bit(s) 16-31 unused */
};
typedef rpmFlags rpmVSFlags;
#define RPMVSF_MASK_NODIGESTS \
( RPMVSF_NOSHA1HEADER | \
RPMVSF_NOSHA256HEADER | \
RPMVSF_NOPAYLOAD | \
RPMVSF_NOMD5 )
#define _RPMVSF_NODIGESTS RPMVSF_MASK_NODIGESTS
#define RPMVSF_MASK_NOSIGNATURES \
( RPMVSF_NODSAHEADER | \
RPMVSF_NORSAHEADER | \
RPMVSF_NODSA | \
RPMVSF_NORSA )
#define _RPMVSF_NOSIGNATURES RPMVSF_MASK_NOSIGNATURES
#define RPMVSF_MASK_NOHEADER \
( RPMVSF_NOSHA1HEADER | \
RPMVSF_NOSHA256HEADER | \
RPMVSF_NODSAHEADER | \
RPMVSF_NORSAHEADER )
#define _RPMVSF_NOHEADER RPMVSF_MASK_NOHEADER
#define RPMVSF_MASK_NOPAYLOAD \
( RPMVSF_NOMD5 | \
RPMVSF_NOPAYLOAD | \
RPMVSF_NODSA | \
RPMVSF_NORSA )
#define _RPMVSF_NOPAYLOAD RPMVSF_MASK_NOPAYLOAD
enum {
RPMSIG_NONE_TYPE = 0,
RPMSIG_DIGEST_TYPE = (1 << 0),
RPMSIG_SIGNATURE_TYPE = (1 << 1),
RPMSIG_OTHER_TYPE = (1 << 2),
};
#define RPMSIG_VERIFIABLE_TYPE (RPMSIG_DIGEST_TYPE|RPMSIG_SIGNATURE_TYPE)
typedef enum rpmtsOpX_e {
RPMTS_OP_TOTAL = 0,
RPMTS_OP_CHECK = 1,
RPMTS_OP_ORDER = 2,
RPMTS_OP_FINGERPRINT = 3,
RPMTS_OP_INSTALL = 5,
RPMTS_OP_ERASE = 6,
RPMTS_OP_SCRIPTLETS = 7,
RPMTS_OP_COMPRESS = 8,
RPMTS_OP_UNCOMPRESS = 9,
RPMTS_OP_DIGEST = 10,
RPMTS_OP_SIGNATURE = 11,
RPMTS_OP_DBADD = 12,
RPMTS_OP_DBREMOVE = 13,
RPMTS_OP_DBGET = 14,
RPMTS_OP_DBPUT = 15,
RPMTS_OP_DBDEL = 16,
RPMTS_OP_VERIFY = 17,
RPMTS_OP_MAX = 18
} rpmtsOpX;
enum rpmtxnFlags_e {
RPMTXN_READ = (1 << 0),
RPMTXN_WRITE = (1 << 1),
};
typedef rpmFlags rpmtxnFlags;
int rpmtsCheck(rpmts ts);
int rpmtsOrder(rpmts ts);
int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet);
rpmts rpmtsLink (rpmts ts);
int rpmtsCloseDB(rpmts ts);
int rpmtsOpenDB(rpmts ts, int dbmode);
int rpmtsInitDB(rpmts ts, int dbmode);
int rpmtsGetDBMode(rpmts ts);
int rpmtsSetDBMode(rpmts ts, int dbmode);
int rpmtsRebuildDB(rpmts ts);
int rpmtsVerifyDB(rpmts ts);
rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag,
const void * keyp, size_t keylen);
rpmRC rpmtsImportHeader(rpmtxn txn, Header h, rpmFlags flags);
rpmRC rpmtsImportPubkey(rpmts ts, const unsigned char * pkt, size_t pktlen);
rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload);
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring);
int rpmtsSetSolveCallback(rpmts ts,
int (*solve) (rpmts ts, rpmds ds, const void * data),
const void * solveData);
rpmps rpmtsProblems(rpmts ts);
void rpmtsCleanProblems(rpmts ts);
void rpmtsClean(rpmts ts);
void rpmtsEmpty(rpmts ts);
rpmts rpmtsFree(rpmts ts);
rpmVSFlags rpmtsVSFlags(rpmts ts);
rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags);
rpmVSFlags rpmtsVfyFlags(rpmts ts);
rpmVSFlags rpmtsSetVfyFlags(rpmts ts, rpmVSFlags vfyflags);
int rpmtsVfyLevel(rpmts ts);
int rpmtsSetVfyLevel(rpmts ts, int vfylevel);
const char * rpmtsRootDir(rpmts ts);
int rpmtsSetRootDir(rpmts ts, const char * rootDir);
FD_t rpmtsScriptFd(rpmts ts);
void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd);
rpm_tid_t rpmtsGetTid(rpmts ts);
rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid);
rpmdb rpmtsGetRdb(rpmts ts);
void * rpmtsNotify(rpmts ts, rpmte te,
rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total);
int rpmtsNElements(rpmts ts);
rpmte rpmtsElement(rpmts ts, int ix);
rpmprobFilterFlags rpmtsFilterFlags(rpmts ts);
rpmtransFlags rpmtsFlags(rpmts ts);
rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags);
rpm_color_t rpmtsColor(rpmts ts);
rpm_color_t rpmtsPrefColor(rpmts ts);
rpm_color_t rpmtsSetColor(rpmts ts, rpm_color_t color);
rpm_color_t rpmtsSetPrefColor(rpmts ts, rpm_color_t color);
rpmop rpmtsOp(rpmts ts, rpmtsOpX opx);
rpmPlugins rpmtsPlugins(rpmts ts);
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 rpmtsAddReinstallElement(rpmts ts, Header h, const fnpyKey key);
int rpmtsAddEraseElement(rpmts ts, Header h, int dboffset);
rpmtxn rpmtxnBegin(rpmts ts, rpmtxnFlags flags);
rpmtxn rpmtxnEnd(rpmtxn txn);
rpmtsi rpmtsiFree(rpmtsi tsi);
rpmtsi rpmtsiInit(rpmts ts);
rpmte rpmtsiNext(rpmtsi tsi, rpmElementTypes types);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMTS */
rpmtsSetNotifyCallback
int rpmtsSetNotifyCallback(rpmts ts, rpmCallbackFunction notify, rpmCallbackData notifyData)
Set transaction notify callback function and argument.
RPMTRANS_FLAG_NODOCS
Definition: rpmts.h:35
rpmCallbackType
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
RPMTRANS_FLAG_NOTRIGGERIN
Definition: rpmts.h:44
RPMTS_OP_FINGERPRINT
Definition: rpmts.h:157
rpmtsImportPubkey
rpmRC rpmtsImportPubkey(rpmts ts, const unsigned char *pkt, size_t pktlen)
Import public key packet(s).
rpmdbMatchIterator
struct rpmdbMatchIterator_s * rpmdbMatchIterator
Definition: rpmtypes.h:69
rpmtsOp
rpmop rpmtsOp(rpmts ts, rpmtsOpX opx)
Retrieve operation timestamp from a transaction set.
rpmtsFilterFlags
rpmprobFilterFlags rpmtsFilterFlags(rpmts ts)
Get problem ignore bit mask, i.e.
RPMVSF_NOMD5
Definition: rpmts.h:105
rpmtxnEnd
rpmtxn rpmtxnEnd(rpmtxn txn)
Destroy transaction (lock) handle.
rpmps
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
rpmtxn
struct rpmtxn_s * rpmtxn
Definition: rpmtypes.h:72
rpmtsSetColor
rpm_color_t rpmtsSetColor(rpmts ts, rpm_color_t color)
Set color bits of transaction set.
rpmtsi
struct rpmtsi_s * rpmtsi
Definition: rpmtypes.h:70
rpmtsSetFlags
rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags)
Set transaction flags, i.e.
rpmtsGetRdb
rpmdb rpmtsGetRdb(rpmts ts)
Get transaction set database handle.
rpmtsFree
rpmts rpmtsFree(rpmts ts)
Destroy transaction set, closing the database as well.
RPMVSF_NODSAHEADER
Definition: rpmts.h:101
rpmtsPlugins
rpmPlugins rpmtsPlugins(rpmts ts)
Get the plugins associated with a transaction set.
RPMTRANS_FLAG_NOPREUN
Definition: rpmts.h:46
rpmtsLink
rpmts rpmtsLink(rpmts ts)
Reference a transaction set instance.
rpmtxnFlags
rpmFlags rpmtxnFlags
Definition: rpmts.h:178
RPMTRANS_FLAG_NOTRIGGERUN
Definition: rpmts.h:45
RPMTS_OP_VERIFY
Definition: rpmts.h:170
rpmtsRebuildDB
int rpmtsRebuildDB(rpmts ts)
Rebuild the database used by the transaction.
rpmtsGetTid
rpm_tid_t rpmtsGetTid(rpmts ts)
Get transaction id, i.e.
RPMTRANS_FLAG_NOMD5
Definition: rpmts.h:52
RPMVSF_NOSHA1HEADER
Definition: rpmts.h:99
RPMTS_OP_DIGEST
Definition: rpmts.h:163
rpmtsEmpty
void rpmtsEmpty(rpmts ts)
Re-create an empty transaction set.
rpmtsSetKeyring
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
Set keyring to use for this transaction set.
RPMTRANS_FLAG_NOSCRIPTS
Definition: rpmts.h:32
rpmtsNotify
void * rpmtsNotify(rpmts ts, rpmte te, rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total)
Perform transaction progress notify callback.
rpmts
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
rpmCallbackData
void * rpmCallbackData
Definition: rpmtypes.h:76
RPMTS_OP_ERASE
Definition: rpmts.h:159
rpmtsColor
rpm_color_t rpmtsColor(rpmts ts)
Retrieve color bits of transaction set.
RPMVSF_NORSAHEADER
Definition: rpmts.h:102
rpmtsPrefColor
rpm_color_t rpmtsPrefColor(rpmts ts)
Retrieve preferred file color.
rpmprobFilterFlags
rpmFlags rpmprobFilterFlags
Definition: rpmprob.h:35
rpmtsAddInstallElement
int rpmtsAddInstallElement(rpmts ts, Header h, const fnpyKey key, int upgrade, rpmRelocation *relocs)
Add package to be installed to transaction set.
RPMTS_OP_ORDER
Definition: rpmts.h:156
RPMVSF_DEFAULT
Definition: rpmts.h:95
rpmRelocation_s
We pass these around as an array with a sentinel.
Definition: rpmfiles.h:96
rpmtsSetSolveCallback
int rpmtsSetSolveCallback(rpmts ts, int(*solve)(rpmts ts, rpmds ds, const void *data), const void *solveData)
Set dependency solver callback.
rpmtsScriptFd
FD_t rpmtsScriptFd(rpmts ts)
Get transaction script file handle, i.e.
RPMTRANS_FLAG_NOTRIGGERPREIN
Definition: rpmts.h:41
rpmtsInitIterator
rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag, const void *keyp, size_t keylen)
Return transaction database iterator.
RPMTRANS_FLAG_NOCAPS
Definition: rpmts.h:39
rpmKeyring
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:80
RPMVSF_NORSA
Definition: rpmts.h:107
rpmCallbackFunction
void *(* rpmCallbackFunction)(const void *h, const rpmCallbackType what, const rpm_loff_t amount, const rpm_loff_t total, fnpyKey key, rpmCallbackData data)
Function pointer type for rpmtsSetNotifyCallback() triggered by rpmtsNotify()
Definition: rpmcallback.h:61
rpmtsCreate
rpmts rpmtsCreate(void)
Create an empty transaction set.
rpmPlugins
struct rpmPlugins_s * rpmPlugins
Definition: rpmtypes.h:86
_rpmts_stats
int _rpmts_stats
RPMTRANS_FLAG_NOTRIGGERPOSTUN
Definition: rpmts.h:48
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
RPMTS_OP_DBADD
Definition: rpmts.h:165
rpmtsAddReinstallElement
int rpmtsAddReinstallElement(rpmts ts, Header h, const fnpyKey key)
Add package to be reinstalled to transaction set.
rpmtsInitDB
int rpmtsInitDB(rpmts ts, int dbmode)
Initialize the database used by the transaction.
RPMTS_OP_DBPUT
Definition: rpmts.h:168
rpmdb
struct rpmdb_s * rpmdb
Definition: rpmtypes.h:68
rpmtransFlags_e
rpmtransFlags_e
Bit(s) to control rpmtsRun() operation.
Definition: rpmts.h:28
RPMVSF_NOPAYLOAD
Definition: rpmts.h:104
rpmtsOpX
enum rpmtsOpX_e rpmtsOpX
Indices for timestamps.
FD_t
struct _FD_s * FD_t
RPM IO file descriptor type.
Definition: rpmtypes.h:98
rpmtsVerifyDB
int rpmtsVerifyDB(rpmts ts)
Verify the database used by the transaction.
rpm_color_t
uint32_t rpm_color_t
Definition: rpmtypes.h:38
rpmtsCloseDB
int rpmtsCloseDB(rpmts ts)
Close the database used by the transaction.
RPMTS_OP_UNCOMPRESS
Definition: rpmts.h:162
RPMTRANS_FLAG_DEPLOOPS
Definition: rpmts.h:56
rpmtsSetVfyFlags
rpmVSFlags rpmtsSetVfyFlags(rpmts ts, rpmVSFlags vfyflags)
Set package verify flag(s).
Header
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
rpmVSFlags_e
rpmVSFlags_e
Bit(s) to control digest and signature verification.
Definition: rpmts.h:94
rpmtsSetVfyLevel
int rpmtsSetVfyLevel(rpmts ts, int vfylevel)
Set enforced package verify level.
rpmtsRootDir
const char * rpmtsRootDir(rpmts ts)
Get transaction rootDir, i.e.
fnpyKey
const void * fnpyKey
Definition: rpmtypes.h:75
RPMTRANS_FLAG_NOCONTEXTS
Definition: rpmts.h:38
RPMTXN_READ
Definition: rpmts.h:175
rpmVSFlags
rpmFlags rpmVSFlags
Definition: rpmts.h:111
RPMTS_OP_SIGNATURE
Definition: rpmts.h:164
rpmds
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpmtsOpenDB
int rpmtsOpenDB(rpmts ts, int dbmode)
Open the database used by the transaction.
RPMTRANS_FLAG_NOPOST
Definition: rpmts.h:43
rpmtsiFree
rpmtsi rpmtsiFree(rpmtsi tsi)
Destroy transaction element iterator.
rpmtsElement
rpmte rpmtsElement(rpmts ts, int ix)
Return (ordered) transaction set element.
rpmtsiNext
rpmte rpmtsiNext(rpmtsi tsi, rpmElementTypes types)
Return next transaction element of type.
rpmtsSetDBMode
int rpmtsSetDBMode(rpmts ts, int dbmode)
Set the transaction database mode.
rpmtxnFlags_e
rpmtxnFlags_e
Definition: rpmts.h:174
rpmte
struct rpmte_s * rpmte
Definition: rpmtypes.h:64
RPMTRANS_FLAG_ALLFILES
Definition: rpmts.h:36
RPMTS_OP_SCRIPTLETS
Definition: rpmts.h:160
RPMTRANS_FLAG_NOPOSTUN
Definition: rpmts.h:47
rpmop_s
Cumulative statistics for an operation.
Definition: rpmsw.h:42
RPMTRANS_FLAG_BUILD_PROBS
Definition: rpmts.h:31
RPMTRANS_FLAG_NOTRIGGERS
Definition: rpmts.h:34
rpmtsImportHeader
rpmRC rpmtsImportHeader(rpmtxn txn, Header h, rpmFlags flags)
Import a header into the rpmdb.
RPMSIG_SIGNATURE_TYPE
Definition: rpmts.h:144
rpmtsSetVSFlags
rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags)
Set verify signatures flag(s).
rpmtsGetKeyring
rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload)
Retrieve handle for keyring used for this transaction set.
rpm_tid_t
uint32_t rpm_tid_t
Definition: rpmtypes.h:40
rpmtsOrder
int rpmtsOrder(rpmts ts)
Determine package order in a transaction set according to dependencies.
RPMSIG_NONE_TYPE
Definition: rpmts.h:142
RPMTS_OP_INSTALL
Definition: rpmts.h:158
rpmtsClean
void rpmtsClean(rpmts ts)
Free memory needed only for dependency checks and ordering.
rpmDbiTagVal
rpm_tag_t rpmDbiTagVal
Definition: rpmtypes.h:31
rpmtsAddEraseElement
int rpmtsAddEraseElement(rpmts ts, Header h, int dboffset)
Add package to be erased to transaction set.
rpmtsRun
int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet)
Process all package elements in a transaction set.
RPMTRANS_FLAG_NOPRE
Definition: rpmts.h:42
RPMVSF_NOSHA256HEADER
Definition: rpmts.h:100
rpmtsGetDBMode
int rpmtsGetDBMode(rpmts ts)
Return the transaction database mode.
rpmtsNElements
int rpmtsNElements(rpmts ts)
Return number of (ordered) transaction set elements.
RPMTRANS_FLAG_NONE
Definition: rpmts.h:29
rpmtsFlags
rpmtransFlags rpmtsFlags(rpmts ts)
Get transaction flags, i.e.
rpmtsVfyFlags
rpmVSFlags rpmtsVfyFlags(rpmts ts)
Get package verify flag(s).
RPMSIG_OTHER_TYPE
Definition: rpmts.h:145
RPMTS_OP_CHECK
Definition: rpmts.h:155
RPMTRANS_FLAG_NOPRETRANS
Definition: rpmts.h:49
rpmElementTypes
rpmFlags rpmElementTypes
Definition: rpmte.h:24
rpmtsVSFlags
rpmVSFlags rpmtsVSFlags(rpmts ts)
Get verify signatures flag(s).
RPMTRANS_FLAG_TEST
Definition: rpmts.h:30
RPMTS_OP_DBDEL
Definition: rpmts.h:169
RPMTRANS_FLAG_NOPOSTTRANS
Definition: rpmts.h:50
rpmtsSetPrefColor
rpm_color_t rpmtsSetPrefColor(rpmts ts, rpm_color_t color)
Set preferred file color.
RPMTRANS_FLAG_NOFILEDIGEST
Definition: rpmts.h:53
RPMTRANS_FLAG_NOCONFIGS
Definition: rpmts.h:55
RPMTS_OP_TOTAL
Definition: rpmts.h:154
RPMTXN_WRITE
Definition: rpmts.h:176
RPMVSF_NODSA
Definition: rpmts.h:106
RPMTS_OP_COMPRESS
Definition: rpmts.h:161
rpmtransFlags
rpmFlags rpmtransFlags
Definition: rpmts.h:59
rpmtsSetRootDir
int rpmtsSetRootDir(rpmts ts, const char *rootDir)
Set transaction rootDir, i.e.
RPMTS_OP_DBREMOVE
Definition: rpmts.h:166
rpmtsVfyLevel
int rpmtsVfyLevel(rpmts ts)
Get enforced package verify level.
RPMVSF_NEEDPAYLOAD
Definition: rpmts.h:97
RPMTRANS_FLAG_NOPLUGINS
Definition: rpmts.h:37
RPMVSF_NOHDRCHK
Definition: rpmts.h:96
rpmtsSetScriptFd
void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd)
Set transaction script file handle, i.e.
RPMTRANS_FLAG_JUSTDB
Definition: rpmts.h:33
rpmtsOpX_e
rpmtsOpX_e
Indices for timestamps.
Definition: rpmts.h:153
RPMTS_OP_DBGET
Definition: rpmts.h:167
rpmtsCheck
int rpmtsCheck(rpmts ts)
Perform dependency resolution on the transaction set.
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmtsCleanProblems
void rpmtsCleanProblems(rpmts ts)
Clean current transaction problem set.
RPMTS_OP_MAX
Definition: rpmts.h:171
rpmtsiInit
rpmtsi rpmtsiInit(rpmts ts)
Create transaction element iterator.
RPMSIG_DIGEST_TYPE
Definition: rpmts.h:143
rpmRC
enum rpmRC_e rpmRC
Package read return codes.
rpmtxnBegin
rpmtxn rpmtxnBegin(rpmts ts, rpmtxnFlags flags)
Create a transaction (lock) handle.
rpmtsProblems
rpmps rpmtsProblems(rpmts ts)
Return current transaction set problems.
rpmtsSetTid
rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid)
Set transaction id, i.e.