aboutsummaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorkitsunyan2018-05-03 14:15:26 +0000
committerkitsunyan2018-05-03 14:15:26 +0000
commit9f2cc1571a06685d28f1b8b0becf4406dda4177b (patch)
tree6df7c772057c7fd663a0a87011c28b5ed39f4047 /src/feature
parent2d96ba4cf3c616bf972b905f8abdcf283fba3cbc (diff)
Remove unnecessary "pacmanTargets" arg from "resolveDependencies"
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/syncinstall.nim11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim
index 61bd857..ec8c064 100644
--- a/src/feature/syncinstall.nim
+++ b/src/feature/syncinstall.nim
@@ -573,9 +573,9 @@ proc deduplicatePkgInfos(pkgInfos: seq[PackageInfo],
a & b,
newSeq[PackageInfo]())
-proc resolveDependencies(config: Config, pacmanTargets: seq[FullPackageTarget[PackageInfo]],
- pkgInfos: seq[PackageInfo], additionalPkgInfos: seq[PackageInfo],
- printMode: bool, directSome: bool, noaur: bool): (bool, Table[PackageReference, SatisfyResult],
+proc resolveDependencies(config: Config, pkgInfos: seq[PackageInfo],
+ additionalPkgInfos: seq[PackageInfo], printMode: bool, directSome: bool,
+ noaur: bool): (bool, Table[PackageReference, SatisfyResult],
seq[string], seq[seq[seq[PackageInfo]]], seq[string]) =
if pkgInfos.len > 0 and not printMode:
if directSome:
@@ -750,8 +750,7 @@ proc handleInstall(args: seq[Argument], config: Config, upgradeCount: int,
else:
let commonArgs = args.keepOnlyOptions(commonOptions, upgradeCommonOptions)
let (resolveSuccess, satisfied, additionalPacmanTargets, basePackages, dependencyPaths) =
- resolveDependencies(config, pacmanTargets, pkgInfos, additionalPkgInfos,
- false, directSome, noaur)
+ resolveDependencies(config, pkgInfos, additionalPkgInfos, false, directSome, noaur)
let paths = initialPaths & dependencyPaths
let confirmAndResolveCode = if resolveSuccess:
@@ -846,7 +845,7 @@ proc handlePrint(args: seq[Argument], config: Config, printFormat: string, upgra
let directPacmanTargets = pacmanTargets.map(`$`)
let (resolveSuccess, _, additionalPacmanTargets, basePackages, _) =
- resolveDependencies(config, pacmanTargets, pkgInfos, additionalPkgInfos, true, false, noaur)
+ resolveDependencies(config, pkgInfos, additionalPkgInfos, true, false, noaur)
let code = if directPacmanTargets.len > 0 or
additionalPacmanTargets.len > 0 or upgradeCount > 0: (block: