diff options
author | kitsunyan | 2018-10-22 13:26:13 +0000 |
---|---|---|
committer | kitsunyan | 2018-10-22 13:26:13 +0000 |
commit | a25e544b717edab821779b4e7d978e8bf24debcb (patch) | |
tree | 08ff14f28e0225141b1cf9c389d1fc345453a0fe /src/feature/syncsource.nim | |
parent | d125243edc87a4bc961c7976f73fb2248050effb (diff) |
Replace package target object tree with tuples
Diffstat (limited to 'src/feature/syncsource.nim')
-rw-r--r-- | src/feature/syncsource.nim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim index 20ff56f..b080aff 100644 --- a/src/feature/syncsource.nim +++ b/src/feature/syncsource.nim @@ -117,17 +117,16 @@ proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarge if rpcInfo.base in bases: a else: - a & (rpcInfo.base, rpcInfo.version, b.destination.get(rpcInfo.base), + a & (rpcInfo.base, rpcInfo.version, b.sync.target.destination.get(rpcInfo.base), some(rpcInfo.gitUrl), none(GitRepo)) else: - let foundInfo = b.foundInfos[0] + let foundInfo = b.sync.foundInfos[0] let pkg = foundInfo.pkg.get if pkg.base in bases: a else: let git = lookupGitRepo(foundInfo.repo, pkg.base, pkg.arch.get) - a & (pkg.base, pkg.version, b.destination.get(pkg.base), - none(string), git), + a & (pkg.base, pkg.version, b.sync.target.destination.get(pkg.base), none(string), git), newSeq[BaseTarget]()) let (update, terminate) = if quiet: |