index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Olivier Brunel <jjk@jjacky.com> | 2015-12-15 09:14:37 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-12-15 20:33:26 +1000 |
commit | eadf38960776e36df75d6c3caf3a35b976acc56c (patch) | |
tree | 2453b678046bf068ab1472ae5c3147502f9ea502 /lib/libalpm | |
parent | 8454daa7feef14b660561f2434448d0b4ac0576d (diff) |
-rw-r--r-- | lib/libalpm/hook.c | 8 |
diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c index fd251fa9..b5ed17d6 100644 --- a/lib/libalpm/hook.c +++ b/lib/libalpm/hook.c @@ -712,6 +712,10 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when) closedir(d); } + if(ret != 0 && when == ALPM_HOOK_PRE_TRANSACTION) { + goto cleanup; + } + hooks = alpm_list_msort(hooks, alpm_list_count(hooks), (alpm_list_fn_cmp)_alpm_hook_cmp); @@ -745,6 +749,10 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when) hook_event.type = ALPM_EVENT_HOOK_RUN_DONE; EVENT(handle, &hook_event); + + if(ret != 0 && when == ALPM_HOOK_PRE_TRANSACTION) { + break; + } } alpm_list_free(hooks_triggered); |