/var/lib/rpm/* files are %ghost files, ie they are not created by installing the package. The size recorded in headers for %ghosts depends on what was present at build time, typically they are zero-length files created by running "touch", which is the case here. And as 'rpm -ql' shows the file data from headers, not filesystems, zero size is what you get. So this is not actually a bug but expected behavior for %ghost files.
Description of problem:
if file has size=1 then second field of "rpm --dump" shows size=0
priority = lower then low
Version-Release number of selected component (if applicable):
all
# rpm -q rpm
rpm-4.4.2.3-3.el5
How reproducible:
always
Steps to Reproduce:
# rpm -ql rpm --dump | grep __db.001 rpm/__db. 001 0 1194852312 d41d8cd98f00b20 4e9800998ecf842 7e 0100644 rpm rpm 1 0 0 X rpm/__db. 001 rpm/__db. 001
/var/lib/
# ll /var/lib/
-rw-r--r-- 1 root root 24576 2008-08-28 18:39 /var/lib/
Actual results: rpm/__db. 001 zero
--dump shows size of /var/lib/
Expected results: rpm/__db. 001 is 1
--dump shows size of /var/lib/
# rpm -ql rpm --dump | grep __db.001 rpm/__db. 001 1 1194852312 d41d8cd98f00b20 4e9800998ecf842 7e 0100644 rpm rpm 1 0 0 X
/var/lib/
Additional info:
found during testing bug 250207