Unify caching concerns in package accessors
commit49176461a6b476e673e232075c95f07963750f74
authorDan McGee <dan@archlinux.org>
Wed, 7 Jul 2010 14:39:39 +0000 (7 09:39 -0500)
committerAllan McRae <allan@archlinux.org>
Wed, 13 Oct 2010 13:53:17 +0000 (13 23:53 +1000)
tree0910d7e4f650623e3e2c81883f18153384a09f03
parent5fcb005ebd270c1ecff3403695680145253961a2
Unify caching concerns in package accessors

Move almost all of the caching related stuff into a single #define
(which should maybe even just be a static function) so we don't
duplicate logic all over the place. This also makes the code a heck of a
lot shorter and means further changes to this stuff don't have to touch
each and every getter function.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/package.c