From d721bae443fe020bf755d0440684a17b75de970f Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 14 Dec 2015 20:23:26 +1000 Subject: 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 --- src/pacman/callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3-24-g4f1b