summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-03-12 15:41:33 +0000
committerDan McGee <dan@archlinux.org>2007-03-12 15:41:33 +0000
commit38784a7eb5194f6221373c047f29cfa6083c63c8 (patch)
treeeff6dde8c40e2aa43d4e649a20c34d4e045ed328 /lib
parent5f15a80274e09fe2dabc80c9dd5f05a1d770e43d (diff)
downloadpacman-38784a7eb5194f6221373c047f29cfa6083c63c8.tar.xz
* Fix wrong filesize being recorded to local DB. Reported by Andreas Radke.
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c
index 30f6f905..9a7bce9c 100644
--- a/lib/libalpm/be_files.c
+++ b/lib/libalpm/be_files.c
@@ -568,8 +568,9 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
"%s\n\n", info->packager);
}
if(info->size) {
+ /* only write installed size, csize is irrelevant once installed */
fprintf(fp, "%%SIZE%%\n"
- "%lu\n\n", info->size);
+ "%lu\n\n", info->isize);
}
if(info->reason) {
fprintf(fp, "%%REASON%%\n"