aboutsummaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorj-james2020-12-23 20:52:52 +0000
committerj-james2020-12-23 20:52:52 +0000
commit855ba8396725812bee2bf975423700280d3044b1 (patch)
treec80ee79ba8b59c1745e32c2e39b8401d36e613cb /src/feature
parent0601052833bfb97cc178cdbd7aa150ecec4c7e5b (diff)
Add support for pacman's progress bar Easter eggzqqw
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/syncinstall.nim6
-rw-r--r--src/feature/syncsource.nim2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim
index 8f26d0d..53b6585 100644
--- a/src/feature/syncinstall.nim
+++ b/src/feature/syncinstall.nim
@@ -42,7 +42,7 @@ proc createCloneProgress(config: Config, count: int, flexible: bool, printMode:
(proc (update: int, terminate: int) {.closure.}, proc {.closure.}) =
if count >= 1 and not printMode:
let (update, terminate) = printProgressShare(config.common.progressBar,
- tr"cloning repositories")
+ config.common.chomp, tr"cloning repositories")
update(0, count)
if flexible:
@@ -963,12 +963,12 @@ proc filterIgnoresAndConflicts(config: Config, pkgInfos: seq[PackageInfo],
let nonConflicingPkgInfos = acceptedPkgInfos.foldl(block:
let conflictsWith = collect(newSeq):
for p in a:
- if p.rpc.name != b.rpc.name and
+ if p.rpc.name != b.rpc.name and
(block:collect(newSeq):
for c in b.conflicts:
if c.isProvidedBy(p.rpc.toPackageReference, true):
0
- ).len>0 or
+ ).len>0 or
(block:collect(newSeq):
for c in p.conflicts:
if c.isProvidedBy(p.rpc.toPackageReference, true):
diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim
index f966085..f16f7c6 100644
--- a/src/feature/syncsource.nim
+++ b/src/feature/syncsource.nim
@@ -130,7 +130,7 @@ proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarge
newSeq[BaseTarget]())
let (update, terminate) = if not quiet:
- printProgressShare(config.common.progressBar, tr"cloning repositories")
+ printProgressShare(config.common.progressBar, config.common.chomp, tr"cloning repositories")
else:
(proc (i0: int, i1: int) {.sideEffect,closure.} = discard, proc () {.sideEffect,closure.} = discard)