From b1c31b96321fa157644e1f69fe7992e70b95a3e0 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 11 Nov 2013 11:20:49 +0200 Subject: [PATCH] Switch countFiles() from rpmfi to rpmfiles - Need to do more work to get the same silly number, this particular case doesn't really look like progress :) --- lib/transaction.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/transaction.c b/lib/transaction.c index bfe7229d2..7bed37746 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -289,8 +289,12 @@ static uint64_t countFiles(rpmts ts) uint64_t fc = 0; rpmtsi pi = rpmtsiInit(ts); rpmte p; - while ((p = rpmtsiNext(pi, 0)) != NULL) - fc += rpmfiFC(rpmteFI(p)); + rpmfiles files; + while ((p = rpmtsiNext(pi, 0)) != NULL) { + files = rpmteFiles(p); + fc += rpmfilesFC(files); + rpmfilesFree(files); + } rpmtsiFree(pi); return fc; }