Work around NimScript eval problems by caching better.

This commit is contained in:
Dominik Picheta 2017-09-03 17:44:15 +01:00
commit d9b174b7df
2 changed files with 1 additions and 1 deletions

View file

@ -374,4 +374,5 @@ proc briefClone*(options: Options): Options =
var newOptions = initOptions()
newOptions.config = options.config
newOptions.nimbleData = options.nimbleData
newOptions.pkgInfoCache = options.pkgInfoCache
return newOptions

View file

@ -268,7 +268,6 @@ proc readPackageInfo(nf: NimbleFile, options: Options,
assert fileExists(nf)
# Check the cache.
echo(nf, options.pkgInfoCache.hasKey(nf))
if options.pkgInfoCache.hasKey(nf):
return options.pkgInfoCache[nf]