}
if (tsmem->addedPackages == NULL) {
- tsmem->addedPackages = rpmalCreate(5, tscolor, rpmtsPrefColor(ts));
+ tsmem->addedPackages = rpmalCreate(5, rpmtsFlags(ts),
+ tscolor, rpmtsPrefColor(ts));
}
if (oc >= tsmem->orderAlloced) {
rpmte * newOrder;
int newOrderCount = 0;
int rc;
- rpmal erasedPackages = rpmalCreate(5, rpmtsColor(ts), prefcolor);
+ rpmal erasedPackages = rpmalCreate(5, rpmtsFlags(ts),
+ rpmtsColor(ts), prefcolor);
scc SCCs;
int nelem = rpmtsNElements(ts);
tsortInfo sortInfo = xcalloc(nelem, sizeof(struct tsortInfo_s));
int delta; /*!< Delta for pkg list reallocation. */
int size; /*!< No. of pkgs in list. */
int alloced; /*!< No. of pkgs allocated for list. */
+ rpmtransFlags tsflags; /*!< Transaction control flags. */
rpm_color_t tscolor; /*!< Transaction color. */
rpm_color_t prefcolor; /*!< Transaction preferred color. */
};
al->fileHash = rpmalFileHashFree(al->fileHash);
}
-rpmal rpmalCreate(int delta, rpm_color_t tscolor, rpm_color_t prefcolor)
+rpmal rpmalCreate(int delta, rpmtransFlags tsflags,
+ rpm_color_t tscolor, rpm_color_t prefcolor)
{
rpmal al = xcalloc(1, sizeof(*al));
al->providesHash = NULL;
al->fileHash = NULL;
+ al->tsflags = tsflags;
al->tscolor = tscolor;
al->prefcolor = prefcolor;
*/
#include <rpm/rpmtypes.h>
+#include <rpm/rpmts.h>
#ifdef __cplusplus
extern "C" {
/**
* Initialize available packckages, items, and directory list.
* @param delta no. of entries to add on each realloc
+ * @param tsflags transaction control flags
* @param tscolor transaction color bits
* @param prefcolor preferred color
* @return al new available list
*/
RPM_GNUC_INTERNAL
-rpmal rpmalCreate(int delta, rpm_color_t tscolor, rpm_color_t prefcolor);
+rpmal rpmalCreate(int delta, rpmtransFlags tsflags,
+ rpm_color_t tscolor, rpm_color_t prefcolor);
/**
* Free available packages, items, and directory members.