summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-12-14 11:23:26 +0100
committerAllan McRae <allan@archlinux.org>2015-12-15 11:15:02 +0100
commitd721bae443fe020bf755d0440684a17b75de970f (patch)
tree971187b77dedb5d02c535ca5237be5b19fa9a388 /src
parent760bea543211673884c254b7e0c44e0f70fe2257 (diff)
downloadpacman-d721bae443fe020bf755d0440684a17b75de970f.tar.gz
pacman-d721bae443fe020bf755d0440684a17b75de970f.tar.xz
alpm-hooks: add Description field
The "Description" field allows a hook to provide a some text for frontends to use in describing what the hook is doing. For example: Description = updating info page directory Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 83939509..b19e645a 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -189,7 +189,8 @@ void cb_event(alpm_event_t *event)
alpm_event_hook_run_t *e = &event->hook_run;
int digits = number_length(e->total);
printf("(%*zu/%*zu) %s\n", digits, e->position,
- digits, e->total, e->name);
+ digits, e->total,
+ e->desc ? e->desc : e->name);
}
break;
case ALPM_EVENT_CHECKDEPS_START: