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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue