mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
libalpm/sync.c : don't go back on STATE_PREPARED when committing fails.
In my opinion, a commiting transaction that failed isn't equivalent to a prepared transaction. Some things could have been done in the meantime. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
This commit is contained in:
parent
fc65a9bcb1
commit
f81e619974
@ -1022,8 +1022,6 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
|
||||
error:
|
||||
_alpm_trans_free(tr);
|
||||
tr = NULL;
|
||||
/* commiting failed, so this is still just a prepared transaction */
|
||||
trans->state = STATE_PREPARED;
|
||||
return(-1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user