22extern int _rpmts_stats;
28 RPMTRANS_FLAG_NONE = 0,
62typedef rpmFlags rpmtransFlags;
64#define _noTransScripts \
65 ( RPMTRANS_FLAG_NOPRE | \
66 RPMTRANS_FLAG_NOPOST | \
67 RPMTRANS_FLAG_NOPREUN | \
68 RPMTRANS_FLAG_NOPOSTUN | \
69 RPMTRANS_FLAG_NOPRETRANS | \
70 RPMTRANS_FLAG_NOPOSTTRANS | \
71 RPMTRANS_FLAG_NOPREUNTRANS |\
72 RPMTRANS_FLAG_NOPOSTUNTRANS \
75#define _noTransTriggers \
76 ( RPMTRANS_FLAG_NOTRIGGERPREIN | \
77 RPMTRANS_FLAG_NOTRIGGERIN | \
78 RPMTRANS_FLAG_NOTRIGGERUN | \
79 RPMTRANS_FLAG_NOTRIGGERPOSTUN \
83#define RPMTRANS_FLAG_NOPAYLOAD 0
84#define RPMTRANS_FLAG_APPLYONLY 0
85#define RPMTRANS_FLAG_KEEPOBSOLETE 0
86#define RPMTRANS_FLAG_DIRSTASH 0
87#define RPMTRANS_FLAG_REPACKAGE 0
88#define RPMTRANS_FLAG_PKGCOMMIT 0
89#define RPMTRANS_FLAG_PKGUNDO 0
90#define RPMTRANS_FLAG_COMMIT 0
91#define RPMTRANS_FLAG_UNDO 0
92#define RPMTRANS_FLAG_REVERSE 0
93#define RPMTRANS_FLAG_NOSUGGEST 0
94#define RPMTRANS_FLAG_ADDINDEPS 0
101 RPMVSF_NOHDRCHK = (1 << 0),
102 RPMVSF_NEEDPAYLOAD = (1 << 1),
104 RPMVSF_NOSHA1HEADER = (1 << 8),
105 RPMVSF_NOSHA256HEADER = (1 << 9),
106 RPMVSF_NODSAHEADER = (1 << 10),
107 RPMVSF_NORSAHEADER = (1 << 11),
109 RPMVSF_NOPAYLOAD = (1 << 16),
110 RPMVSF_NOMD5 = (1 << 17),
111 RPMVSF_NODSA = (1 << 18),
112 RPMVSF_NORSA = (1 << 19)
116typedef rpmFlags rpmVSFlags;
118#define RPMVSF_MASK_NODIGESTS \
119 ( RPMVSF_NOSHA1HEADER | \
120 RPMVSF_NOSHA256HEADER | \
123#define _RPMVSF_NODIGESTS RPMVSF_MASK_NODIGESTS
125#define RPMVSF_MASK_NOSIGNATURES \
126 ( RPMVSF_NODSAHEADER | \
127 RPMVSF_NORSAHEADER | \
130#define _RPMVSF_NOSIGNATURES RPMVSF_MASK_NOSIGNATURES
132#define RPMVSF_MASK_NOHEADER \
133 ( RPMVSF_NOSHA1HEADER | \
134 RPMVSF_NOSHA256HEADER | \
135 RPMVSF_NODSAHEADER | \
137#define _RPMVSF_NOHEADER RPMVSF_MASK_NOHEADER
139#define RPMVSF_MASK_NOPAYLOAD \
144#define _RPMVSF_NOPAYLOAD RPMVSF_MASK_NOPAYLOAD
147 RPMSIG_NONE_TYPE = 0,
148 RPMSIG_DIGEST_TYPE = (1 << 0),
149 RPMSIG_SIGNATURE_TYPE = (1 << 1),
150 RPMSIG_OTHER_TYPE = (1 << 2),
153#define RPMSIG_VERIFIABLE_TYPE (RPMSIG_DIGEST_TYPE|RPMSIG_SIGNATURE_TYPE)
154#define RPMSIG_UNVERIFIED_TYPE (1 << 30)
163 RPMTS_OP_FINGERPRINT = 3,
164 RPMTS_OP_INSTALL = 5,
166 RPMTS_OP_SCRIPTLETS = 7,
167 RPMTS_OP_COMPRESS = 8,
168 RPMTS_OP_UNCOMPRESS = 9,
169 RPMTS_OP_DIGEST = 10,
170 RPMTS_OP_SIGNATURE = 11,
172 RPMTS_OP_DBREMOVE = 13,
176 RPMTS_OP_VERIFY = 17,
181 RPMTXN_READ = (1 << 0),
182 RPMTXN_WRITE = (1 << 1),
184typedef rpmFlags rpmtxnFlags;
186typedef enum rpmtsEvent_e {
204 (
int event, rpmte te, rpmte other,
void *data);
324 const void * keyp,
size_t keylen);
371 int (*solve) (
rpmts ts, rpmds ds,
const void * data),
372 const void * solveData);
614 rpmCallbackData notifyData);
667 const fnpyKey key,
int upgrade,
rpmte rpmtsiNext(rpmtsi tsi, rpmElementTypes types)
rpmtsi rpmtsiInit(rpmts ts)
rpmtsi rpmtsiFree(rpmtsi tsi)
int rpmtsGetNotifyStyle(rpmts ts)
rpmtxn rpmtxnBegin(rpmts ts, rpmtxnFlags flags)
rpmVSFlags_e
Definition rpmts.h:99
int rpmtsSetNotifyCallback(rpmts ts, rpmCallbackFunction notify, rpmCallbackData notifyData)
rpm_color_t rpmtsSetPrefColor(rpmts ts, rpm_color_t color)
rpm_color_t rpmtsSetColor(rpmts ts, rpm_color_t color)
int rpmtsAddInstallElement(rpmts ts, Header h, const fnpyKey key, int upgrade, rpmRelocation *relocs)
rpmtransFlags rpmtsFlags(rpmts ts)
int rpmtsAddReinstallElement(rpmts ts, Header h, const fnpyKey key)
rpmps rpmtsProblems(rpmts ts)
rpmte rpmtsElement(rpmts ts, int ix)
int rpmtsSetRootDir(rpmts ts, const char *rootDir)
int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet)
int rpmtsRebuildDB(rpmts ts)
rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload)
void * rpmtsNotify(rpmts ts, rpmte te, rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total)
rpmVSFlags rpmtsSetVfyFlags(rpmts ts, rpmVSFlags vfyflags)
rpmVSFlags rpmtsVSFlags(rpmts ts)
int rpmtsGetDBMode(rpmts ts)
rpmts rpmtsFree(rpmts ts)
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags)
rpm_tid_t rpmtsGetTid(rpmts ts)
rpmRC rpmtsImportHeader(rpmtxn txn, Header h, rpmFlags flags)
rpmVSFlags rpmtsVfyFlags(rpmts ts)
rpmts rpmtsLink(rpmts ts)
rpmtransFlags rpmtsSetFlags(rpmts ts, rpmtransFlags transFlags)
rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid)
void rpmtsSetScriptFd(rpmts ts, FD_t scriptFd)
int rpmtsAddEraseElement(rpmts ts, Header h, int dboffset)
void rpmtsEmpty(rpmts ts)
int rpmtsSetChangeCallback(rpmts ts, rpmtsChangeFunction notify, void *data)
int(* rpmtsChangeFunction)(int event, rpmte te, rpmte other, void *data)
Definition rpmts.h:204
void *(* rpmCallbackFunction)(const void *h, const rpmCallbackType what, const rpm_loff_t amount, const rpm_loff_t total, fnpyKey key, rpmCallbackData data)
Definition rpmcallback.h:61
int rpmtsOpenDB(rpmts ts, int dbmode)
rpmtsOpX_e
Definition rpmts.h:159
int rpmtsSetSolveCallback(rpmts ts, int(*solve)(rpmts ts, rpmds ds, const void *data), const void *solveData)
rpmRC rpmtsImportPubkey(rpmts ts, const unsigned char *pkt, size_t pktlen)
void rpmtsCleanProblems(rpmts ts)
const char * rpmtsRootDir(rpmts ts)
int rpmtsVerifyDB(rpmts ts)
rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag, const void *keyp, size_t keylen)
int rpmtsVfyLevel(rpmts ts)
rpm_color_t rpmtsPrefColor(rpmts ts)
rpmprobFilterFlags rpmtsFilterFlags(rpmts ts)
rpmop rpmtsOp(rpmts ts, rpmtsOpX opx)
int rpmtsSetVfyLevel(rpmts ts, int vfylevel)
rpmtxn rpmtxnEnd(rpmtxn txn)
rpmtransFlags_e
Definition rpmts.h:27
int rpmtsSetDBMode(rpmts ts, int dbmode)
rpm_color_t rpmtsColor(rpmts ts)
int rpmtsAddRestoreElement(rpmts ts, Header h)
void rpmtsClean(rpmts ts)
int rpmtsSetNotifyStyle(rpmts ts, int style)
int rpmtsNElements(rpmts ts)
int rpmtsCloseDB(rpmts ts)
rpmdb rpmtsGetRdb(rpmts ts)
rpmPlugins rpmtsPlugins(rpmts ts)
FD_t rpmtsScriptFd(rpmts ts)
int rpmtsInitDB(rpmts ts, int perms)
@ RPMTRANS_FLAG_NOCONFIGS
Definition rpmts.h:58
@ RPMTRANS_FLAG_NOMD5
Definition rpmts.h:54
@ RPMTRANS_FLAG_NOCAPS
Definition rpmts.h:38
@ RPMTRANS_FLAG_NOPREUN
Definition rpmts.h:48
@ RPMTRANS_FLAG_NOPLUGINS
Definition rpmts.h:36
@ RPMTRANS_FLAG_NOFILEDIGEST
Definition rpmts.h:55
@ RPMTRANS_FLAG_NOARTIFACTS
Definition rpmts.h:57
@ RPMTRANS_FLAG_NOTRIGGERIN
Definition rpmts.h:46
@ RPMTRANS_FLAG_NOTRIGGERPREIN
Definition rpmts.h:43
@ RPMTRANS_FLAG_NOPOSTUNTRANS
Definition rpmts.h:42
@ RPMTRANS_FLAG_NOPRETRANS
Definition rpmts.h:51
@ RPMTRANS_FLAG_NOSCRIPTS
Definition rpmts.h:31
@ RPMTRANS_FLAG_NOPOSTUN
Definition rpmts.h:49
@ RPMTRANS_FLAG_NOPRE
Definition rpmts.h:44
@ RPMTRANS_FLAG_NOPREUNTRANS
Definition rpmts.h:41
@ RPMTRANS_FLAG_JUSTDB
Definition rpmts.h:32
@ RPMTRANS_FLAG_NOTRIGGERPOSTUN
Definition rpmts.h:50
@ RPMTRANS_FLAG_NOTRIGGERUN
Definition rpmts.h:47
@ RPMTRANS_FLAG_NOPOST
Definition rpmts.h:45
@ RPMTRANS_FLAG_NODOCS
Definition rpmts.h:34
@ RPMTRANS_FLAG_NOCONTEXTS
Definition rpmts.h:37
@ RPMTRANS_FLAG_NOTRIGGERS
Definition rpmts.h:33
@ RPMTRANS_FLAG_NODB
Definition rpmts.h:39
@ RPMTRANS_FLAG_ALLFILES
Definition rpmts.h:35
@ RPMTRANS_FLAG_TEST
Definition rpmts.h:29
@ RPMTRANS_FLAG_DEPLOOPS
Definition rpmts.h:59
@ RPMTRANS_FLAG_NOPOSTTRANS
Definition rpmts.h:52
@ RPMTRANS_FLAG_NOSYSUSERS
Definition rpmts.h:53
@ RPMTRANS_FLAG_BUILD_PROBS
Definition rpmts.h:30
struct _FD_s * FD_t
Definition rpmtypes.h:99
struct rpmts_s * rpmts
Definition rpmtypes.h:63
struct headerToken_s * Header
Definition rpmtypes.h:24
enum rpmCallbackType_e rpmCallbackType
Definition rpmfiles.h:129