[PATCH 4/4] Add INTERRUPTED to transaction hooks support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux