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:
Chantry Xavier 2007-08-17 14:07:56 +02:00 committed by Dan McGee
parent fc65a9bcb1
commit f81e619974
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}