From 1ea84c977af2bab63ca00424a17a50250946e525 Mon Sep 17 00:00:00 2001 From: jmgomez Date: Thu, 21 Nov 2024 10:18:42 +0000 Subject: [PATCH] Dont traverse additional versions when the dep is fixed --- src/nimblepkg/nimblesat.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimblepkg/nimblesat.nim b/src/nimblepkg/nimblesat.nim index d2faf9f5..3aae89be 100644 --- a/src/nimblepkg/nimblesat.nim +++ b/src/nimblepkg/nimblesat.nim @@ -470,7 +470,7 @@ proc getPackageMinimalVersionsFromRepo*(repoDir, pkgName: string, downloadMethod proc downloadMinimalPackage*(pv: PkgTuple, options: Options): seq[PackageMinimalInfo] = if pv.name == "": return newSeq[PackageMinimalInfo]() if pv.isNim and not options.disableNimBinaries: return getAllNimReleases(options) - if pv.ver.kind == verSpecial: + if pv.ver.kind in [verSpecial, verEq]: #if special or equal, we dont retrieve more versions as we only need one. result = @[downloadPkInfoForPv(pv, options).getMinimalInfo(options)] else: let (downloadRes, downloadMeth) = downloadPkgFromUrl(pv, options)