From 38784a7eb5194f6221373c047f29cfa6083c63c8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 12 Mar 2007 15:41:33 +0000 Subject: * Fix wrong filesize being recorded to local DB. Reported by Andreas Radke. --- lib/libalpm/be_files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libalpm') 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" -- cgit v1.2.3