diff options
author | kitsunyan | 2018-04-22 22:47:55 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-22 22:47:55 +0000 |
commit | a1a5e345daaeae0fae1da58e3683041d48e2583a (patch) | |
tree | 67349123a37b8459a405954cc6ca0548662d8467 /src/feature/syncinfo.nim | |
parent | 276d8b9b1dd15f3c6fdf6c44f2bab35713a98b74 (diff) |
Add support for version constraints for targets
Diffstat (limited to 'src/feature/syncinfo.nim')
-rw-r--r-- | src/feature/syncinfo.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/syncinfo.nim b/src/feature/syncinfo.nim index 5ff6b38..d00dcc0 100644 --- a/src/feature/syncinfo.nim +++ b/src/feature/syncinfo.nim @@ -100,13 +100,13 @@ proc handleSyncInfo*(args: seq[Argument], config: Config): int = let (_, callArgs) = checkAndRefresh(config.color, args) let targets = args.packageTargets - let (syncTargets, checkAur) = withAlpm(config.root, config.db, + let (syncTargets, checkAurNames) = withAlpm(config.root, config.db, config.dbs, config.arch, handle, dbs, errors): for e in errors: printError(config.color, e) findSyncTargets(handle, dbs, targets, false, false) - let (pkgInfos, aerrors) = getAurPackageInfo(checkAur, none(seq[RpcPackageInfo]), - config.arch, proc (a: int, b: int) = discard) + let (pkgInfos, aerrors) = getAurPackageInfo(checkAurNames, + none(seq[RpcPackageInfo]), config.arch, proc (a: int, b: int) = discard) for e in aerrors: printError(config.color, e) let fullTargets = mapAurTargets[PackageInfo](syncTargets, pkgInfos) |