[pacman-dev] [PATCH 15/16] colourize -Q
Simon Gomizelj
simongmzlj at gmail.com
Fri Mar 1 16:32:44 EST 2013
Signed-off-by: Simon Gomizelj <simongmzlj at gmail.com>
---
src/pacman/query.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 416f92c..39002e6 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -386,7 +386,8 @@ static int display(alpm_pkg_t *pkg)
if(!config->op_q_info && !config->op_q_list
&& !config->op_q_changelog && !config->op_q_check) {
if(!config->quiet) {
- printf("%s %s\n", alpm_pkg_get_name(pkg), alpm_pkg_get_version(pkg));
+ printf("%s%s %s%s%s\n", colstr.title, alpm_pkg_get_name(pkg),
+ colstr.version, alpm_pkg_get_version(pkg), colstr.nc);
} else {
printf("%s\n", alpm_pkg_get_name(pkg));
}
--
1.8.1.4
More information about the pacman-dev
mailing list