diff options
author | Benjamin Shirley-Quirk | 2020-08-04 20:36:19 +0000 |
---|---|---|
committer | Benjamin Shirley-Quirk | 2020-08-04 20:36:19 +0000 |
commit | 0afaa2a8cd7e56f4eabcf6b54e83bcab6be39f42 (patch) | |
tree | f474af5f8864f191eb006f3cf69e9c65490fb2cb /src/feature/syncsource.nim | |
parent | 8c75dc9df518579cab48a6ded803bf8d493a3cab (diff) |
compiles now on current devel (1.3.5)
Diffstat (limited to 'src/feature/syncsource.nim')
-rw-r--r-- | src/feature/syncsource.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim index c050e6a..f966085 100644 --- a/src/feature/syncsource.nim +++ b/src/feature/syncsource.nim @@ -129,10 +129,11 @@ proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarge a & (pkg.base, pkg.version, b.sync.target.destination.get(pkg.base), none(string), git), newSeq[BaseTarget]()) - let (update, terminate) = if quiet: - (proc (a: int, b: int) {.closure.} = discard, proc () {.closure.} = discard) - else: + let (update, terminate) = if not quiet: printProgressShare(config.common.progressBar, tr"cloning repositories") + else: + (proc (i0: int, i1: int) {.sideEffect,closure.} = discard, proc () {.sideEffect,closure.} = discard) + let (results, rerrors) = cloneRepositories(config, baseTargets, update) terminate() |