index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-10-11 04:08:20 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-10-13 14:28:29 +1000 |
commit | c1d6cec2e277eea7affa43601086c523311b58c0 (patch) | |
tree | ad2ef11358f4c67c7dd2a4d488b600616d91f0e3 /lib/libalpm/sync.c | |
parent | 42c859e4cc38f91a1236cd93eae9e9f9a1bc1e62 (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 11 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 9fe4eff5..c513b6b5 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1263,13 +1263,12 @@ static int load_packages(alpm_handle_t *handle, alpm_list_t **data, return 0; } -int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data) +int _alpm_sync_load(alpm_handle_t *handle, alpm_list_t **data) { alpm_list_t *i, *deltas = NULL; size_t total = 0; uint64_t total_bytes = 0; alpm_trans_t *trans = handle->trans; - alpm_event_t event; if(download_files(handle, &deltas)) { alpm_list_free(deltas); @@ -1318,7 +1317,13 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data) return -1; } - trans->state = STATE_COMMITING; + return 0; +} + +int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data) +{ + alpm_trans_t *trans = handle->trans; + alpm_event_t event; /* fileconflict check */ if(!(trans->flags & ALPM_TRANS_FLAG_DBONLY)) { |