summaryrefslogtreecommitdiffstats
path: root/src/pacman/query.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-11 22:02:33 +0100
committerDan McGee <dan@archlinux.org>2007-11-13 07:09:45 +0100
commit5e12d3dec99e7a506683cf625fa4344f57df0b77 (patch)
tree274ae7b1acd23ed43b7a3f6cbe11935acc7dbf1c /src/pacman/query.c
parenta0c908dd0da4a00cc98a46407534da67d4aee8a8 (diff)
downloadpacman-5e12d3dec99e7a506683cf625fa4344f57df0b77.tar.gz
pacman-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 'src/pacman/query.c')
-rw-r--r--src/pacman/query.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index ed48799c..9ede00ab 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -280,7 +280,12 @@ static int filter(pmpkg_t *pkg)
static void display(pmpkg_t *pkg)
{
if(config->op_q_info) {
- dump_pkg_full(pkg, config->op_q_info);
+ if(config->op_q_isfile) {
+ /* omit info that isn't applicable for a file package */
+ dump_pkg_full(pkg, 0);
+ } else {
+ dump_pkg_full(pkg, config->op_q_info);
+ }
}
if(config->op_q_list) {
dump_pkg_files(pkg);