diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2020-03-08 21:33:32 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-05-09 03:58:21 +0200 |
commit | fe8e13341bdeae4a59c0270a632c29e71ae9deda (patch) | |
tree | 2e40d6b786ec2fe8bd5b878d09f2fa627c0190a8 /src/pacman/conf.h | |
parent | cffda331adca0aedd7c1fc17d739c27fc8041a20 (diff) | |
download | pacman-fe8e13341bdeae4a59c0270a632c29e71ae9deda.tar.gz pacman-fe8e13341bdeae4a59c0270a632c29e71ae9deda.tar.xz |
Add config option to specify amount of parallel download streams
It includes pacman.conf new 'ParallelDownloads' option that
specifies how many concurrent downloads cURL starts in parallel.
Add alpm_option_set_parallel_downloads() ALPM function that
allows to set this config option programmatically.
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r-- | src/pacman/conf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h index e1df24b7..b8a451ad 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -116,6 +116,8 @@ typedef struct __config_t { /* When downloading, display the amount downloaded, rate, ETA, and percent * downloaded of the total download list */ unsigned short totaldownload; + /* number of parallel download streams */ + unsigned int parallel_downloads; /* select -Sc behavior */ unsigned short cleanmethod; alpm_list_t *holdpkg; |