From 54008798efcc9646f622f6b052ecd83281d57cda Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 14 Jul 2006 23:15:07 +0000 Subject: Patch from FW: Better control over CTRL-C interruptions -- do not leave the DB in an inconsistent state --- lib/libalpm/trans.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/trans.c') diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 449d3355..ee546480 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -191,6 +191,8 @@ int _alpm_trans_commit(pmtrans_t *trans, PMList **data) return(0); } + trans->state = STATE_COMMITTING; + switch(trans->type) { case PM_TRANS_TYPE_ADD: case PM_TRANS_TYPE_UPGRADE: -- cgit v1.2.3-24-g4f1b