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/syncsearch.nim | |
parent | 07d3d493093f2222801ff9c71e27198575f90240 (diff) |
Allow to change the name of fake AUR repo
Diffstat (limited to 'src/feature/syncsearch.nim')
-rw-r--r-- | src/feature/syncsearch.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/syncsearch.nim b/src/feature/syncsearch.nim index 0b1aeae..7a9199d 100644 --- a/src/feature/syncsearch.nim +++ b/src/feature/syncsearch.nim @@ -11,7 +11,7 @@ proc handleSyncSearch*(args: seq[Argument], config: Config): int = else: let quiet = args.check(%%%"quiet") - let (aurPackages, aerrors) = findAurPackages(args.targets) + let (aurPackages, aerrors) = findAurPackages(args.targets, config.aurRepo) for e in aerrors: printError(config.color, e) type Package = tuple[rpcInfo: RpcPackageInfo, installedVersion: Option[string]] @@ -49,7 +49,7 @@ proc handleSyncSearch*(args: seq[Argument], config: Config): int = if quiet: echo(pkg.rpcInfo.name) else: - printPackageSearch(config.color, "aur", pkg.rpcInfo.name, + printPackageSearch(config.color, config.aurRepo, pkg.rpcInfo.name, pkg.rpcInfo.version, pkg.installedVersion, pkg.rpcInfo.description, some(formatPkgRating(pkg.rpcInfo.votes, pkg.rpcInfo.popularity))) 0 |