colourize -Sl/-Ql
Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
326345b378
commit
7dd1a5a58d
2 changed files with 6 additions and 7 deletions
|
@ -307,12 +307,9 @@ void dump_pkg_files(alpm_pkg_t *pkg, int quiet)
|
||||||
* Quiet : '<root><filepath>\n'
|
* Quiet : '<root><filepath>\n'
|
||||||
*/
|
*/
|
||||||
if(!quiet) {
|
if(!quiet) {
|
||||||
fputs(pkgname, stdout);
|
printf("%s%s%s ", config->colstr.title, pkgname, config->colstr.nocolor);
|
||||||
putchar(' ');
|
|
||||||
}
|
}
|
||||||
fputs(root, stdout);
|
printf("%s%s\n", root, file->name);
|
||||||
fputs(file->name, stdout);
|
|
||||||
putchar('\n');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
|
@ -522,8 +522,10 @@ static int sync_list(alpm_list_t *syncs, alpm_list_t *targets)
|
||||||
alpm_pkg_t *pkg = j->data;
|
alpm_pkg_t *pkg = j->data;
|
||||||
|
|
||||||
if(!config->quiet) {
|
if(!config->quiet) {
|
||||||
printf("%s %s %s", alpm_db_get_name(db), alpm_pkg_get_name(pkg),
|
const colstr_t *colstr = &config->colstr;
|
||||||
alpm_pkg_get_version(pkg));
|
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);
|
print_installed(db_local, pkg);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue