From f81e619974ca47f6dba8c3002577447a71e0f1ec Mon Sep 17 00:00:00 2001 From: Chantry Xavier Date: Fri, 17 Aug 2007 14:07:56 +0200 Subject: 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 --- lib/libalpm/sync.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index fee5eff0..4b4df1fe 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -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); } -- cgit v1.2.3-24-g4f1b