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.
|
||||
result = @[]
|
||||
assert(not pkginfo.isMinimal, "processDeps needs pkginfo.requires")
|
||||
let pkglist = getInstalledPkgs(options.getPkgsDir(), options)
|
||||
var reverseDeps: seq[tuple[name, version: string]] = @[]
|
||||
for dep in pkginfo.requires:
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ proc getInstalledPkgs*(libsDir: string, options: Options):
|
|||
if nimbleFile != "":
|
||||
let meta = readMetaData(path)
|
||||
try:
|
||||
var pkg = readPackageInfo(nimbleFile, options, true)
|
||||
var pkg = readPackageInfo(nimbleFile, options, onlyMinimalInfo=false)
|
||||
pkg.isInstalled = true
|
||||
result.add((pkg, meta))
|
||||
except ValidationError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue