Fixes getInstalledPkgs returning minimal package information.
This was introduced in commit 2cf03313fd.
This commit is contained in:
parent
1be5c052ae
commit
2eec391732
2 changed files with 2 additions and 1 deletions
|
|
@ -255,6 +255,7 @@ proc processDeps(pkginfo: PackageInfo, options: Options): seq[string] =
|
||||||
##
|
##
|
||||||
## Returns the list of paths to pass to the compiler during build phase.
|
## Returns the list of paths to pass to the compiler during build phase.
|
||||||
result = @[]
|
result = @[]
|
||||||
|
assert(not pkginfo.isMinimal, "processDeps needs pkginfo.requires")
|
||||||
let pkglist = getInstalledPkgs(options.getPkgsDir(), options)
|
let pkglist = getInstalledPkgs(options.getPkgsDir(), options)
|
||||||
var reverseDeps: seq[tuple[name, version: string]] = @[]
|
var reverseDeps: seq[tuple[name, version: string]] = @[]
|
||||||
for dep in pkginfo.requires:
|
for dep in pkginfo.requires:
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ proc getInstalledPkgs*(libsDir: string, options: Options):
|
||||||
if nimbleFile != "":
|
if nimbleFile != "":
|
||||||
let meta = readMetaData(path)
|
let meta = readMetaData(path)
|
||||||
try:
|
try:
|
||||||
var pkg = readPackageInfo(nimbleFile, options, true)
|
var pkg = readPackageInfo(nimbleFile, options, onlyMinimalInfo=false)
|
||||||
pkg.isInstalled = true
|
pkg.isInstalled = true
|
||||||
result.add((pkg, meta))
|
result.add((pkg, meta))
|
||||||
except ValidationError:
|
except ValidationError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue