From 8d3bd4ec13940da70f946e6e63d59a05c89cbb50 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 14 Dec 2015 13:39:58 +1000 Subject: Add ALPM_EVENT_TRANSACTION_{START,DONE} events This provides a way to detect when the processing of package changes starts, allowing pacman to delineate hook output and package installation/removal output. Signed-off-by: Allan McRae --- src/pacman/callback.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index b8ded3d0..a71d94ba 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -188,6 +188,9 @@ void cb_event(alpm_event_t *event) case ALPM_EVENT_INTERCONFLICTS_START: printf(_("looking for conflicting packages...\n")); break; + case ALPM_EVENT_TRANSACTION_START: + colon_printf(_("Processing package changes...\n")); + break; case ALPM_EVENT_PACKAGE_OPERATION_START: if(config->noprogressbar) { alpm_event_package_operation_t *e = &event->package_operation; @@ -327,6 +330,7 @@ void cb_event(alpm_event_t *event) case ALPM_EVENT_CHECKDEPS_DONE: case ALPM_EVENT_RESOLVEDEPS_DONE: case ALPM_EVENT_INTERCONFLICTS_DONE: + case ALPM_EVENT_TRANSACTION_DONE: case ALPM_EVENT_INTEGRITY_DONE: case ALPM_EVENT_KEYRING_DONE: case ALPM_EVENT_KEY_DOWNLOAD_DONE: -- cgit v1.2.3