Unify the user+group caching between librpm and librpmbuild
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 15 Dec 2010 07:30:56 +0000 (09:30 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 15 Dec 2010 07:30:56 +0000 (09:30 +0200)
commita2d002a34bc567e8ce88c9ed30270d55d7c904fd
treef77d7ec761188431cb1321869a4e7586523d157c
parent2a54555aa2144f56a2ba518c48830c60da78c4d4
Unify the user+group caching between librpm and librpmbuild
- The build version has getUidS() and getGidS() for which there is
  no counterpart in the rpmug api but there's not much point to them:
  they check whether the user/groupname exists but return our own
  string back to us even if it doesn't.
- The build version also caches more than current rpmug, but has an ugly
  hardwired limit causing (in theory) errors that can't be nicely
  handled, and is the last piece relying on RPMLOG_CRIT actually
  terminating the process. The librpm version doesn't fail, in the
  worst case its just a bit slower. And that can be fixed anytime by
  making it to use hash tables for caching.
build/build.c
build/files.c
build/parsePrep.c