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
1 changed files with 0 additions and 2 deletions
|
@ -1022,8 +1022,6 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
|
||||||
error:
|
error:
|
||||||
_alpm_trans_free(tr);
|
_alpm_trans_free(tr);
|
||||||
tr = NULL;
|
tr = NULL;
|
||||||
/* commiting failed, so this is still just a prepared transaction */
|
|
||||||
trans->state = STATE_PREPARED;
|
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue