Simplify + cleanup rpmdbCountPackages()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 10:02:28 +0000 (13:02 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 10:02:28 +0000 (13:02 +0300)
commit81322e9742fc8b66fb23255ee35ca98e485ff3d7
treeb81e93120725fc8840f250418ec4f603ffd21c91
parentc33ccb71c9226921c4732660e9b408e454c08a4a
Simplify + cleanup rpmdbCountPackages()
- Use the new dbiGetToSet() for doing the actual work, reducing
  fluff considerably
- Dont bother checking for NULL db, rpmdbOpenIndex() does this anyway
- Return an error, not 0 (ie "not found") for NULL db and name
- Remove redundant dbtag variable, this is always RPMDBI_NAME
lib/rpmdb.c