Closed stefanhusmann closed 6 years ago
Can you try to build it with this patch and give me the output?
--- a/src/aur.nim
+++ b/src/aur.nim
@@ -69,6 +69,7 @@
.foldl(a & "&arg[]=" & b)
let response = performString(url, useTimeout)
+ echo(response)
let results = parseJson(response)["results"]
let table = lc[(x.name, x) | (y <- results, x <- parseRpcPackageInfo(y, repo)),
(string, RpcPackageInfo)].toTable
@@ -76,7 +77,7 @@
except CurlError:
(@[], some(getCurrentException().msg))
except JsonParsingError:
- (@[], some(tr"failed to parse server response"))
+ (@[], some(tr"failed to parse server response ($#)" % [getCurrentException().msg]))
proc getAurPackageInfos*(pkgs: seq[string], repo: string, arch: string, useTimeout: bool):
(seq[PackageInfo], seq[PackageInfo], seq[string]) =```
Here the output:
Works fine. Thanks.
Not sure why (is used to work, and pakku's code did not change) but for a week or so runnig pakku -Suy now results in an error message and lots of warnings.
Error: failed to parse server response
Warnings: ... was not found in AUR.
The ... stands for many packages that actually are in AUR but also in my personal repo. Is this only on my side?