static int checkPackageSet(rpmts ts, const char * dep,
rpmdbMatchIterator mi, int adding)
{
- int scareMem = 1;
Header h;
int ec = 0;
int rc;
pkgNEVRA = headerGetNEVRA(h, NULL);
- requires = rpmdsNew(h, RPMTAG_REQUIRENAME, scareMem);
+ requires = rpmdsNew(h, RPMTAG_REQUIRENAME, 0);
(void) rpmdsSetNoPromote(requires, _rpmds_nopromote);
- conflicts = rpmdsNew(h, RPMTAG_CONFLICTNAME, scareMem);
+ conflicts = rpmdsNew(h, RPMTAG_CONFLICTNAME, 0);
(void) rpmdsSetNoPromote(conflicts, _rpmds_nopromote);
rc = checkPackageDeps(ts, pkgNEVRA, requires, conflicts, dep, 0, adding);
conflicts = rpmdsFree(conflicts);
}
/* see if we already have this provide */
- hds = rpmdsNew(h, RPMTAG_PROVIDENAME, 1);
+ hds = rpmdsNew(h, RPMTAG_PROVIDENAME, 0);
nvrds = rpmdsSingle(RPMTAG_PROVIDENAME, name, pEVR, pFlags);
if (rpmdsFind(hds, nvrds) >= 0) {
bingo = 0;
Header sourceH, Header trigH,
int arg2, unsigned char * triggersAlreadyRun)
{
- int scareMem = 1;
const rpmts ts = psm->ts;
rpmds trigger = NULL;
const char * sourceName;
xx = headerNVR(sourceH, &sourceName, NULL, NULL);
xx = headerNVR(trigH, &triggerName, NULL, NULL);
- trigger = rpmdsInit(rpmdsNew(trigH, RPMTAG_TRIGGERNAME, scareMem));
+ trigger = rpmdsInit(rpmdsNew(trigH, RPMTAG_TRIGGERNAME, 0));
if (trigger == NULL)
return rc;
return -1;
}
}
- s->ds = rpmdsNew(hdrGetHeader(ho), tagN, flags);
+ s->ds = rpmdsNew(hdrGetHeader(ho), tagN, 0);
s->active = 0;
return 0;
return NULL;
}
}
- return rpmds_Wrap( rpmdsNew(hdrGetHeader(ho), tagN, flags) );
+ return rpmds_Wrap( rpmdsNew(hdrGetHeader(ho), tagN, 0) );
}
rpmdsObject *