From c1d6cec2e277eea7affa43601086c523311b58c0 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 11 Oct 2014 04:08:20 -0400 Subject: 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 --- lib/libalpm/sync.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/sync.h') 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 */ -- cgit v1.2.3-24-g4f1b