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 :)
This commit is contained in:
Panu Matilainen 2013-11-11 11:20:49 +02:00
parent 8c1c4df8c0
commit b1c31b9632
1 changed files with 6 additions and 2 deletions

View File

@ -289,8 +289,12 @@ static uint64_t countFiles(rpmts ts)
uint64_t fc = 0; uint64_t fc = 0;
rpmtsi pi = rpmtsiInit(ts); rpmtsi pi = rpmtsiInit(ts);
rpmte p; rpmte p;
while ((p = rpmtsiNext(pi, 0)) != NULL) rpmfiles files;
fc += rpmfiFC(rpmteFI(p)); while ((p = rpmtsiNext(pi, 0)) != NULL) {
files = rpmteFiles(p);
fc += rpmfilesFC(files);
rpmfilesFree(files);
}
rpmtsiFree(pi); rpmtsiFree(pi);
return fc; return fc;
} }