hello im using the rpm4.2-devel package to get informations from
the local rpm database. i have a problem with the iterator given from
the rpm api.
my code in short terms:
#include <...> //all the headers needed
int count = 0;
rpmReadConfigFiles( NULL, NULL);
rpmdbOpen("", &db, O_READONLY, 0644);
dbItr = rpmdbInitIterator(db, RPMTAG_NAME, NULL, 0);
cout << "Elements: " << rpmdbGetIteratorCount(dbItr);
while((h = rpmdbNextIterator(dbItr)) != NULL)
cout << "Count: " << count;
my problem is that rpmdbGetIteratorCount() returns 0. but that cant beQuote:}
because count have something about 500 and over. did anybody else had
this problem and can help me? thnx!!!