kitsunyan / pakku

Pacman wrapper with AUR support
GNU General Public License v3.0
130 stars 8 forks source link

Error message and lots of warnings #30

Closed stefanhusmann closed 6 years ago

stefanhusmann commented 6 years ago

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?

kitsunyan commented 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]) =```
stefanhusmann commented 6 years ago

Here the output:

pakkuout.txt

kitsunyan commented 6 years ago

Can you try this? https://github.com/kitsunyan/pakku/commit/68854ac3f09df6e7ad496f446500ad8df9249330

stefanhusmann commented 6 years ago

Works fine. Thanks.