diff options
author | Simon Gomizelj <simongmzlj@gmail.com> | 2013-03-01 15:33:46 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-07 15:55:04 +1000 |
commit | 7dd1a5a58d463ef6ec8f64d932119d15bda838e0 (patch) | |
tree | 9ab1169ee3c24dada3f5c00c782f359527a137f0 /src | |
parent | 326345b378c05bc3ebca11899b2635b12cb72467 (diff) | |
download | pacman-7dd1a5a58d463ef6ec8f64d932119d15bda838e0.tar.xz |
colourize -Sl/-Ql
Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/package.c | 7 | ||||
-rw-r--r-- | src/pacman/sync.c | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c index 6a5c7c11..42a8635e 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -307,12 +307,9 @@ void dump_pkg_files(alpm_pkg_t *pkg, int quiet) * Quiet : '<root><filepath>\n' */ if(!quiet) { - fputs(pkgname, stdout); - putchar(' '); + printf("%s%s%s ", config->colstr.title, pkgname, config->colstr.nocolor); } - fputs(root, stdout); - fputs(file->name, stdout); - putchar('\n'); + printf("%s%s\n", root, file->name); } fflush(stdout); diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 7b54cba2..e8da3460 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -522,8 +522,10 @@ static int sync_list(alpm_list_t *syncs, alpm_list_t *targets) alpm_pkg_t *pkg = j->data; if(!config->quiet) { - printf("%s %s %s", alpm_db_get_name(db), alpm_pkg_get_name(pkg), - alpm_pkg_get_version(pkg)); + const colstr_t *colstr = &config->colstr; + printf("%s%s %s%s %s%s%s", colstr->repo, alpm_db_get_name(db), + colstr->title, alpm_pkg_get_name(pkg), + colstr->version, alpm_pkg_get_version(pkg), colstr->nocolor); print_installed(db_local, pkg); printf("\n"); } else { |