2011/2/14 Jeff Johnson <n3...@mac.com>:
> Hmmm ... rpmmiCount is supposed to be invoked lazily when needed,
> not as part of every iteration.
>
> The conditions in rpmmiCount() may need adjustment. That I can
> easily believe.
in lib/psm.c:1666

rpmmiCount() is used, where rpmmiNext() has already created mi->mi_dbc
without mi->mi_count being set.

As mi->mi_dbc != NULL, mi->mi_count never gets set by rpmmiCount(), thus
rpmmiCount() will always return 0.

--
Regards,
Per Øyvind
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to