Fix some database size estimation problems
commitd1cc1ef6c31dc193adcf48a9aea4a95830c7ae56
authorDan McGee <dan@archlinux.org>
Tue, 15 Feb 2011 22:56:44 +0000 (15 16:56 -0600)
committerDan McGee <dan@archlinux.org>
Tue, 15 Feb 2011 22:58:08 +0000 (15 16:58 -0600)
treea0808496f537757e32cfc25b0bd83c14a98a6fb0
parent62a2e45b12f746c098523782fb5889793ef59687
Fix some database size estimation problems

* Use stat() and not lstat(); we don't care for the size of the symlink if
  it is one, we want the size of the reference file.
* FS#22896, fix local database estimation on platforms that don't abide by
  the nlink assumption for number of children.
* Fix a missing newline on an error message.

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