From 20017354f7ccb58bf4f78691985a5d237f4dbc90 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 May 2009 21:43:36 -0500 Subject: Remove version information from -Qqo output This was the only --quiet operation that showed version information; make it consistent with the rest. Signed-off-by: Dan McGee --- doc/pacman.8.txt | 8 ++++---- src/pacman/query.c | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/pacman.8.txt b/doc/pacman.8.txt index cc3d396a..37680be8 100644 --- a/doc/pacman.8.txt +++ b/doc/pacman.8.txt @@ -207,10 +207,10 @@ Query Options[[QO]] Show less information for certain query operations. (This is useful when pacman's output is processed in a script.) Search will only show package names and not version, group, and description information; owns will - only show package names and versions instead of "file is owned by pkg" - messages; group will only show package names and omit group names; list - will only show files and omit package names; a bare query will only - show package names rather than names and versions. + only show package names instead of "file is owned by pkg" messages; group + will only show package names and omit group names; list will only show + files and omit package names; a bare query will only show package names + rather than names and versions. *-s, \--search* <'regexp'>:: This will search each locally-installed package for names or diff --git a/src/pacman/query.c b/src/pacman/query.c index 14fa357f..809a5f49 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -125,8 +125,7 @@ static int query_fileowner(alpm_list_t *targets) printf(_("%s is owned by %s %s\n"), filename, alpm_pkg_get_name(info), alpm_pkg_get_version(info)); } else { - printf("%s %s\n", alpm_pkg_get_name(info), - alpm_pkg_get_version(info)); + printf("%s\n", alpm_pkg_get_name(info)); } found = 1; } -- cgit v1.2.3