[pacman-dev] [PATCH 4/4] Add INTERRUPTED to transaction hooks support.
Victor Lowther
victor.lowther at gmail.com
Tue Jul 27 04:44:03 EDT 2010
If a transaction is interrupted, the hooks need to know so that they
can roll back anything that needs to be rolled back.
---
lib/libalpm/trans.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index ed26aa6..d212f50 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -235,6 +235,7 @@ int SYMEXPORT alpm_trans_interrupt()
RET_ERR(PM_ERR_TRANS_TYPE, -1));
trans->state = STATE_INTERRUPTED;
+ alpm_hook_transact("INTERRUPTED");
return(0);
}
--
1.7.1.1
More information about the pacman-dev
mailing list