aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
authorkitsunyan2018-06-09 19:26:16 +0000
committerkitsunyan2018-06-09 19:26:16 +0000
commit0b6c3e6732c5c0d5b6613d2fe450c3b7760c0827 (patch)
tree72fac7f0d47d7ef1683bc2be639fb3cea524ee17 /src/config.nim
parent56e82963b465116af32231aa531e8f6344826eab (diff)
Add support for "--disable-download-timeout" option
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim
index 7daaa53..a0c8281 100644
--- a/src/config.nim
+++ b/src/config.nim
@@ -19,6 +19,7 @@ type
debug*: bool
progressBar*: bool
verbosePkgList*: bool
+ downloadTimeout*: bool
pgpKeyserver*: Option[string]
defaultRoot*: bool
ignorePkgs*: HashSet[string]
@@ -167,8 +168,9 @@ proc obtainConfig*(config: PacmanConfig): Config =
raise commandError(trp("could not register '%s' database (%s)\n") %
[aurRepo, tra"wrong or NULL argument passed"], colorNeeded = some(color))
- Config(dbs: config.dbs, arch: config.arch, debug: config.debug, progressBar: config.progressBar,
- verbosePkgList: config.verbosePkgList, pgpKeyserver: config.pgpKeyserver,
+ Config(dbs: config.dbs, arch: config.arch, debug: config.debug,
+ progressBar: config.progressBar, verbosePkgList: config.verbosePkgList,
+ downloadTimeout: config.downloadTimeout, pgpKeyserver: config.pgpKeyserver,
defaultRoot: config.defaultRoot and config.sysrootOption.isNone,
ignorePkgs: config.ignorePkgs, ignoreGroups: config.ignoreGroups,
root: root, db: db, cache: cache, userCacheInitial: userCacheInitial,