aboutsummaryrefslogtreecommitdiff
path: root/src/aur.nim
diff options
context:
space:
mode:
authorkitsunyan2018-03-13 23:23:58 +0000
committerkitsunyan2018-03-13 23:23:58 +0000
commit67d1413bbcbb07636a3267568572b99e0c92f219 (patch)
treed03ad0740f6a6d64d4a820ddaec82d3968181ba3 /src/aur.nim
parenteedc8ca25aa95ffd152fe9fc3b4946e7ebe0d917 (diff)
Perform arch filter during .SRCINFO parsing
Diffstat (limited to 'src/aur.nim')
-rw-r--r--src/aur.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aur.nim b/src/aur.nim
index acf9f96..42762f6 100644
--- a/src/aur.nim
+++ b/src/aur.nim
@@ -74,7 +74,7 @@ proc getRpcPackageInfo*(pkgs: seq[string]): (seq[RpcPackageInfo], Option[string]
(@[], some(tr"failed to parse server response"))
proc getAurPackageInfo*(pkgs: seq[string], rpcInfosOption: Option[seq[RpcPackageInfo]],
- progressCallback: (int, int) -> void): (seq[PackageInfo], seq[string]) =
+ arch: string, progressCallback: (int, int) -> void): (seq[PackageInfo], seq[string]) =
if pkgs.len == 0:
(@[], @[])
else:
@@ -105,7 +105,7 @@ proc getAurPackageInfo*(pkgs: seq[string], rpcInfosOption: Option[seq[RpcPackage
if operror.isSome:
(@[], operror)
else:
- let pkgInfos = parseSrcInfo("aur", srcInfo,
+ let pkgInfos = parseSrcInfo("aur", srcInfo, arch,
aurUrl & base & ".git", none(string), none(string), none(string), rpcInfos)
(pkgInfos, none(string))