- it aint quite the same thing but will suffice for now...
if (fileArgv == NULL) goto exit;
- ts->goal = TSM_INSTALL;
rpmcliPackagesTotal = 0;
if (rpmExpandNumeric("%{?_repackage_all_erasures}"))
if (rpmExpandNumeric("%{?_repackage_all_erasures}"))
ia->transFlags |= RPMTRANS_FLAG_REPACKAGE;
+ /* XXX suggest mechanism only meaningful when installing */
+ ia->transFlags |= RPMTRANS_FLAG_NOSUGGEST;
+
(void) rpmtsSetFlags(ts, ia->transFlags);
#ifdef NOTYET /* XXX no callbacks on erase yet */
}
#endif
- ts->goal = TSM_ERASE;
-
for (arg = argv; *arg; arg++) {
rpmdbMatchIterator mi;
int rc = 1; /* assume not found */
int xx;
- /* Make suggestions only for install Requires: */
- if (ts->goal != TSM_INSTALL)
- return rc;
-
if (rpmdsTagN(ds) != RPMTAG_REQUIRENAME)
return rc;
memset(&ts->ops, 0, sizeof(ts->ops));
(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_TOTAL), -1);
ts->type = RPMTRANS_TYPE_NORMAL;
- ts->goal = TSM_UNKNOWN;
ts->filesystemCount = 0;
ts->filesystems = NULL;
ts->dsi = NULL;
#define BLOCK_ROUND(size, block) (((size) + (block) - 1) / (block))
/** \ingroup rpmts
- */
-typedef enum tsStage_e {
- TSM_UNKNOWN = 0,
- TSM_INSTALL = 7,
- TSM_ERASE = 8,
-} tsmStage;
-
-/** \ingroup rpmts
* The set of packages to be installed/removed atomically.
*/
struct rpmts_s {
rpmtransFlags transFlags; /*!< Bit(s) to control operation. */
- tsmStage goal; /*!< Transaction goal (i.e. mode) */
rpmtsType type; /*!< default, rollback, autorollback */
rpmdb sdb; /*!< Solve database handle. */