diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-02-12 14:11:22 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-02-12 14:11:22 +0200 |
commit | 51157419623f025149d154c8eb6a0874f1bc23f7 (patch) | |
tree | d106e0d2257023afc10b86f3d10016d9cd7c63dd /lib/rpmfi.c | |
parent | b9b8af5c4b9518fc36d6ab30b1e6124deb78dc8f (diff) | |
download | librpm-tizen-51157419623f025149d154c8eb6a0874f1bc23f7.tar.gz librpm-tizen-51157419623f025149d154c8eb6a0874f1bc23f7.tar.bz2 librpm-tizen-51157419623f025149d154c8eb6a0874f1bc23f7.zip |
Only initialize file capability cache if actually needed
- very few packages are going to have RPMTAG_FILECAPS at all
Diffstat (limited to 'lib/rpmfi.c')
-rw-r--r-- | lib/rpmfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c index 2720172c5..53ff8f74b 100644 --- a/lib/rpmfi.c +++ b/lib/rpmfi.c @@ -1217,7 +1217,7 @@ rpmfi rpmfiNew(const rpmts ts, Header h, rpmTag tagN, rpmfiFlags flags) if (!(flags & RPMFI_NOFILESTATES)) _hgfi(h, RPMTAG_FILESTATES, &td, defFlags, fi->fstates); - if (!(flags & RPMFI_NOFILECAPS)) { + if (!(flags & RPMFI_NOFILECAPS) && headerIsEntry(h, RPMTAG_FILECAPS)) { fi->fcapcache = strcacheNew(); fi->fcaps = cacheTag(fi->fcapcache, h, RPMTAG_FILECAPS); } |