mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-05 21:24:19 -06:00
semantics
This commit is contained in:
parent
31a803d403
commit
0d62fcbd43
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ proc hasNarinfo*(cache: string, path: string): Opt[string] =
|
||||||
finally:
|
finally:
|
||||||
client.close()
|
client.close()
|
||||||
|
|
||||||
proc showNarInfo(s: string): BbString =
|
proc fmtNarinfo(s: string): BbString =
|
||||||
let maxWidth = terminalWidth()
|
let maxWidth = terminalWidth()
|
||||||
result.add "narinfo:"
|
result.add "narinfo:"
|
||||||
for line in s.splitLines():
|
for line in s.splitLines():
|
||||||
|
@ -76,7 +76,7 @@ proc searchCaches(caches: seq[string], path: string): bool =
|
||||||
case hasNarinfo(cache, path):
|
case hasNarinfo(cache, path):
|
||||||
of Some(narinfo):
|
of Some(narinfo):
|
||||||
info fmt"exists in {cache}"
|
info fmt"exists in {cache}"
|
||||||
debug showNarinfo(narinfo)
|
debug fmtNarinfo(narinfo)
|
||||||
of None: discard
|
of None: discard
|
||||||
|
|
||||||
proc checkForCache*(installables: seq[string], caches: seq[string]) =
|
proc checkForCache*(installables: seq[string], caches: seq[string]) =
|
||||||
|
|
Loading…
Reference in a new issue