Fix multiple installs of the same package
When one package is dependency both of some other package and some other dependency of the other package it has been downloaded and installed multiple times. Resolves #678
This commit is contained in:
parent
8cf97e0e06
commit
f461792686
1 changed files with 2 additions and 1 deletions
|
|
@ -156,7 +156,8 @@ proc processDeps(pkginfo: PackageInfo, options: Options): seq[PackageInfo] =
|
|||
"dependencies for $1@$2" % [pkginfo.name, pkginfo.specialVersion],
|
||||
priority = HighPriority)
|
||||
|
||||
var pkgList = getInstalledPkgsMin(options.getPkgsDir(), options)
|
||||
var pkgList {.global.}: seq[tuple[pkginfo: PackageInfo, meta: MetaData]] = @[]
|
||||
once: pkgList = getInstalledPkgsMin(options.getPkgsDir(), options)
|
||||
var reverseDeps: seq[tuple[name, version: string]] = @[]
|
||||
for dep in pkginfo.requires:
|
||||
if dep.name == "nimrod" or dep.name == "nim":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue