summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_files.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-11 15:02:33 -0600
committerDan McGee <dan@archlinux.org>2007-11-13 00:09:45 -0600
commit5e12d3dec99e7a506683cf625fa4344f57df0b77 (patch)
tree274ae7b1acd23ed43b7a3f6cbe11935acc7dbf1c /lib/libalpm/be_files.c
parenta0c908dd0da4a00cc98a46407534da67d4aee8a8 (diff)
downloadpacman-5e12d3dec99e7a506683cf625fa4344f57df0b77.tar.xz
Fix display of -Qip output when a package file is given
Too many fields were being shown on -Qip output, and sizes were not always correct (-Qi and -Qip output on the same package did not agree). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_files.c')
-rw-r--r--lib/libalpm/be_files.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c
index 4b85306b..2f88a16d 100644
--- a/lib/libalpm/be_files.c
+++ b/lib/libalpm/be_files.c
@@ -385,6 +385,10 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
}
_alpm_strtrim(tmp);
info->size = atol(tmp);
+ /* also store this value to isize if isize is unset */
+ if(info->isize == 0) {
+ info->isize = atol(tmp);
+ }
} else if(!strcmp(line, "%ISIZE%")) {
/* ISIZE (installed size) tag only appears in sync repositories,
* not the local one. */