summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Gomizelj <simongmzlj@gmail.com>2013-03-01 15:48:17 -0500
committerAllan McRae <allan@archlinux.org>2013-03-07 15:55:04 +1000
commit32f3b4304c6be397bc34cea82b6bf358c4f13f89 (patch)
treeaa02b225c611a947f30480f4d1f5f262c0724d8a
parent7dd1a5a58d463ef6ec8f64d932119d15bda838e0 (diff)
downloadpacman-32f3b4304c6be397bc34cea82b6bf358c4f13f89.tar.xz
colourize -Q
Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--src/pacman/query.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index ba8d7bc7..f051571c 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -386,7 +386,9 @@ 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));
+ const colstr_t *colstr = &config->colstr;
+ printf("%s%s %s%s%s\n", colstr->title, alpm_pkg_get_name(pkg),
+ colstr->version, alpm_pkg_get_version(pkg), colstr->nocolor);
} else {
printf("%s\n", alpm_pkg_get_name(pkg));
}