index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2020-03-26 13:19:59 -0700 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-05-09 11:58:21 +1000 |
commit | a8a1a1bb3ec98a8471cb5cd13d096f39a267f789 (patch) | |
tree | 3a57e57e8dad88cc4bb51a0cd6b6d87d5a708b59 /lib/libalpm/dload.c | |
parent | fe8e13341bdeae4a59c0270a632c29e71ae9deda (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 12 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 57232a53..8dc259f2 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -634,6 +634,16 @@ int _alpm_download(struct dload_payload *payload, const char *localpath, } } +int _alpm_multi_download(alpm_handle_t *handle, + alpm_list_t *payloads /* struct dload_payload */, + const char *localpath) +{ + (void)handle; + (void)payloads; + (void)localpath; + return 0; +} + static char *filecache_find_url(alpm_handle_t *handle, const char *url) { const char *filebase = strrchr(url, '/'); @@ -736,6 +746,7 @@ void _alpm_dload_payload_reset(struct dload_payload *payload) FREE(payload->destfile_name); FREE(payload->content_disp_name); FREE(payload->fileurl); + FREE(payload->filepath); *payload = (struct dload_payload){0}; } @@ -744,6 +755,7 @@ void _alpm_dload_payload_reset_for_retry(struct dload_payload *payload) ASSERT(payload, return); FREE(payload->fileurl); + FREE(payload->filepath); payload->initial_size += payload->prevprogress; payload->prevprogress = 0; payload->unlink_on_fail = 0; |