void rpmfiFpLookup(rpmfi fi, fingerPrintCache fpc) { if (fi->fc > 0 && fi->fps == NULL) { fi->fps = xcalloc(fi->fc, sizeof(*fi->fps)); } fpLookupList(fpc, fi->dnl, fi->bnl, fi->dil, fi->fc, fi->fps); }
void rpmfiFpLookup(rpmfi fi, fingerPrintCache fpc) { /* This can get called twice (eg yum), scratch former results and redo */ if (fi->fc > 0) { if (fi->fps) free(fi->fps); fi->fps = fpLookupList(fpc, fi->pool, fi->dnid, fi->bnid, fi->dil, fi->fc); } }