Skip to content

Commit

Permalink
Dont traverse additional versions when the dep is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Nov 21, 2024
1 parent cf5aa48 commit 1ea84c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/nimblesat.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1ea84c9

Please sign in to comment.