aboutsummaryrefslogtreecommitdiff
path: root/src/feature/syncsource.nim
diff options
context:
space:
mode:
authorkitsunyan2018-10-22 13:07:40 +0000
committerkitsunyan2018-10-22 13:07:40 +0000
commitd125243edc87a4bc961c7976f73fb2248050effb (patch)
treedf6d3adea6ddd1be054bb9e39e86c43bc09e402b /src/feature/syncsource.nim
parent55507df52ba95c2d97f02f2c4d0cdd2355cadaa2 (diff)
Replace package info object tree with tuples
Diffstat (limited to 'src/feature/syncsource.nim')
-rw-r--r--src/feature/syncsource.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim
index b25d25d..20ff56f 100644
--- a/src/feature/syncsource.nim
+++ b/src/feature/syncsource.nim
@@ -109,12 +109,11 @@ proc copyFiles(config: Config, quiet: bool, results: seq[CloneResult]): List[str
copyNext(0, nil)
-proc cloneAndCopy(config: Config, quiet: bool,
- fullTargets: seq[FullPackageTarget[RpcPackageInfo]]): int =
+proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarget]): int =
let baseTargets = fullTargets.foldl(block:
let bases = a.map(x => x.base)
if b.isAurTargetFull(config.aurRepo):
- let rpcInfo = b.pkgInfo.get
+ let rpcInfo = b.rpcInfo.get
if rpcInfo.base in bases:
a
else:
@@ -179,5 +178,5 @@ proc handleSyncSource*(args: seq[Argument], config: Config): int =
printSyncNotFound(config, notFoundTargets)
1
else:
- let fullTargets = mapAurTargets[RpcPackageInfo](syncTargets, rpcInfos, config.aurRepo)
+ let fullTargets = mapAurTargets(syncTargets, rpcInfos, config.aurRepo)
cloneAndCopy(config, quiet, fullTargets)