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:
parent
8c1c4df8c0
commit
b1c31b9632
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue