diff options
author | kitsunyan | 2018-06-09 03:55:50 +0000 |
---|---|---|
committer | kitsunyan | 2018-06-09 03:55:50 +0000 |
commit | 56e82963b465116af32231aa531e8f6344826eab (patch) | |
tree | 5337cdef453d8b41b16841e09420ef02d5693295 /src/feature/syncsource.nim | |
parent | 07d3d493093f2222801ff9c71e27198575f90240 (diff) |
Allow to change the name of fake AUR repo
Diffstat (limited to 'src/feature/syncsource.nim')
-rw-r--r-- | src/feature/syncsource.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim index 5c3f35a..df543c7 100644 --- a/src/feature/syncsource.nim +++ b/src/feature/syncsource.nim @@ -113,7 +113,7 @@ proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarget[RpcPackageInfo]]): int = let baseTargets = fullTargets.foldl(block: let bases = a.map(x => x.base) - if b.isAurTargetFull: + if b.isAurTargetFull(config.aurRepo): let rpcInfo = b.pkgInfo.get if rpcInfo.base in bases: a @@ -166,17 +166,17 @@ proc handleSyncSource*(args: seq[Argument], config: Config): int = else: let (syncTargets, checkAurNames) = withAlpmConfig(config, true, handle, dbs, errors): for e in errors: printError(config.color, e) - findSyncTargets(handle, dbs, targets, false, false) + findSyncTargets(handle, dbs, targets, config.aurRepo, false, false) - let (rpcInfos, aerrors) = getRpcPackageInfos(checkAurNames) + let (rpcInfos, aerrors) = getRpcPackageInfos(checkAurNames, config.aurRepo) for e in aerrors: printError(config.color, e) let notFoundTargets = filterNotFoundSyncTargets(syncTargets, - rpcInfos, initTable[string, PackageReference]()) + rpcInfos, initTable[string, PackageReference](), config.aurRepo) if notFoundTargets.len > 0: printSyncNotFound(config, notFoundTargets) 1 else: - let fullTargets = mapAurTargets[RpcPackageInfo](syncTargets, rpcInfos) + let fullTargets = mapAurTargets[RpcPackageInfo](syncTargets, rpcInfos, config.aurRepo) cloneAndCopy(config, quiet, fullTargets) |