aboutsummaryrefslogtreecommitdiff
path: root/src/feature/syncsource.nim
diff options
context:
space:
mode:
authorkitsunyan2018-10-22 11:22:24 +0000
committerkitsunyan2018-10-22 11:22:24 +0000
commit55507df52ba95c2d97f02f2c4d0cdd2355cadaa2 (patch)
tree50e8c3a2d1e8b3d1be4c6248cc4cca8402ae1de3 /src/feature/syncsource.nim
parenta953c4c49cff505b16d08d87a58962a878bc5127 (diff)
Replace config object tree with tuples
Diffstat (limited to 'src/feature/syncsource.nim')
-rw-r--r--src/feature/syncsource.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim
index e0531bc..b25d25d 100644
--- a/src/feature/syncsource.nim
+++ b/src/feature/syncsource.nim
@@ -134,7 +134,7 @@ proc cloneAndCopy(config: Config, quiet: bool,
let (update, terminate) = if quiet:
(proc (a: int, b: int) {.closure.} = discard, proc () {.closure.} = discard)
else:
- printProgressShare(config.progressBar, tr"cloning repositories")
+ printProgressShare(config.common.progressBar, tr"cloning repositories")
let (results, rerrors) = cloneRepositories(config, baseTargets, update)
terminate()
@@ -169,7 +169,7 @@ proc handleSyncSource*(args: seq[Argument], config: Config): int =
findSyncTargets(handle, dbs, targets, config.aurRepo, false, false)
let (rpcInfos, aerrors) = getRpcPackageInfos(checkAurNames,
- config.aurRepo, config.downloadTimeout)
+ config.aurRepo, config.common.downloadTimeout)
for e in aerrors: printError(config.color, e)
let notFoundTargets = filterNotFoundSyncTargets(syncTargets,