1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

libalpm/trans.c : remove the lock even on interrupted transactions.

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
This commit is contained in:
Chantry Xavier 2007-08-30 00:39:57 +02:00 committed by Dan McGee
parent 53fc745aed
commit b15a5194d1

View File

@ -171,6 +171,7 @@ int SYMEXPORT alpm_trans_commit(alpm_list_t **data)
int SYMEXPORT alpm_trans_release()
{
pmtrans_t *trans;
int ret = 0;
ALPM_LOG_FUNC;
@ -187,7 +188,7 @@ int SYMEXPORT alpm_trans_release()
trans->state = STATE_INTERRUPTED;
}
pm_errno = PM_ERR_TRANS_COMMITING;
return(-1);
ret = -1;
}
_alpm_trans_free(trans);
@ -205,7 +206,7 @@ int SYMEXPORT alpm_trans_release()
alpm_option_get_lockfile());
}
return(0);
return(ret);
}
/** @} */