aboutsummaryrefslogtreecommitdiff
path: root/src/feature/syncsearch.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/syncsearch.nim')
-rw-r--r--src/feature/syncsearch.nim4
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