index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2019-11-15 23:29:20 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-11-15 23:29:20 +1000 |
commit | e6a6d3079315ce722fec39604fddbab1c7ac79b3 (patch) | |
tree | d82112bd5ad9ea693307c4cf57ce47a25ed70022 /lib/libalpm/dload.c | |
parent | b9faf652735c603d1bdf849a570185eb721f11c1 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 6 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index ddcc45f6..40a1d07d 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -414,6 +414,12 @@ static int curl_download_internal(struct dload_payload *payload, curl_set_handle_opts(payload, curl, error_buffer); + if(payload->max_size == payload->initial_size) { + /* .part file is complete */ + ret = 0; + goto cleanup; + } + if(localf == NULL) { localf = fopen(payload->tempfile_name, payload->tempfile_openmode); if(localf == NULL) { |