diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-08-17 14:07:56 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-08-17 14:46:27 -0400 |
commit | f81e619974ca47f6dba8c3002577447a71e0f1ec (patch) | |
tree | dcf9d5b0b252603f68366e960bfb72a014aaaec1 /lib/libalpm/sync.c | |
parent | fc65a9bcb1722ae9768518aa921c5f02cf282b96 (diff) | |
download | pacman-f81e619974ca47f6dba8c3002577447a71e0f1ec.tar.xz |
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>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); } |