summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.h
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-10-11 10:08:20 +0200
committerAllan McRae <allan@archlinux.org>2014-10-13 06:28:29 +0200
commitc1d6cec2e277eea7affa43601086c523311b58c0 (patch)
treead2ef11358f4c67c7dd2a4d488b600616d91f0e3 /lib/libalpm/sync.h
parent42c859e4cc38f91a1236cd93eae9e9f9a1bc1e62 (diff)
downloadpacman-c1d6cec2e277eea7affa43601086c523311b58c0.tar.gz
pacman-c1d6cec2e277eea7affa43601086c523311b58c0.tar.xz
sync.c: download packages before starting commit
download_files sets the transaction state to STATE_DOWNLOADING. Modifying the state after it has already been set to STATE_COMMITTING created a brief window where SIGINT would fail to interrupt the process and caused interrupted downloads to result in a 'transaction started' message in the log with no matching transaction end. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'lib/libalpm/sync.h')
-rw-r--r--lib/libalpm/sync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/sync.h b/lib/libalpm/sync.h
index f25e450b..c15d348f 100644
--- a/lib/libalpm/sync.h
+++ b/lib/libalpm/sync.h
@@ -25,6 +25,7 @@
#include "alpm.h"
int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data);
+int _alpm_sync_load(alpm_handle_t *handle, alpm_list_t **data);
int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data);
#endif /* _ALPM_SYNC_H */