diff options
author | Judd Vinet <judd@archlinux.org> | 2006-07-14 23:15:07 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-07-14 23:15:07 +0000 |
commit | 54008798efcc9646f622f6b052ecd83281d57cda (patch) | |
tree | f50aeec616897699713156468943dfc8f9923178 /lib/libalpm/trans.c | |
parent | 318e233cb38635581b14e081c22e369265c753b8 (diff) |
Patch from FW: Better control over CTRL-C interruptions -- do not leave the DB in an inconsistent state
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r-- | lib/libalpm/trans.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |