mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-05 21:24:19 -06:00
resultz again
This commit is contained in:
parent
01a051eefa
commit
fbb71b01e9
1 changed files with 6 additions and 8 deletions
|
@ -74,17 +74,15 @@ proc showNarInfo(s: string): BbString =
|
||||||
else:
|
else:
|
||||||
result.add v
|
result.add v
|
||||||
|
|
||||||
# TODO: replace this with 'match Some() later for all Opts
|
|
||||||
|
|
||||||
proc searchCaches(caches: seq[string], path: string): bool =
|
proc searchCaches(caches: seq[string], path: string): bool =
|
||||||
## search all caches until a match is found
|
## search all caches until a match is found
|
||||||
info "searching for: " & prettyDerivation(path)
|
info "searching for: " & prettyDerivation(path)
|
||||||
for cache in caches:
|
for cache in caches:
|
||||||
match hasNarinfo(cache, path):
|
case hasNarinfo(cache, path):
|
||||||
Ok(narinfo):
|
of Some(narinfo):
|
||||||
info fmt"exists in {cache}"
|
info fmt"exists in {cache}"
|
||||||
debug showNarinfo(narinfo)
|
debug showNarinfo(narinfo)
|
||||||
Err(): discard
|
of None: discard
|
||||||
|
|
||||||
proc checkForCache*(installables: seq[string], caches: seq[string]) =
|
proc checkForCache*(installables: seq[string], caches: seq[string]) =
|
||||||
let caches =
|
let caches =
|
||||||
|
|
Loading…
Reference in a new issue