Kwpolska / pkgbuilder

An AUR helper (and library) in Python 3.
http://pkgbuilder.rtfd.org/
BSD 3-Clause "New" or "Revised" License
69 stars 13 forks source link

Fix RPC requests pls #53

Closed SolarAquarion closed 7 years ago

SolarAquarion commented 7 years ago

It seems doing one request on about 500 packages at once will make this project fail. To fix it, would be too split up the RPC calls into a more manageable amount

Kwpolska commented 7 years ago

How does it fail? What errors do you get?

SolarAquarion commented 7 years ago

solaraquarion@apollo   ~  pkgbuilder -Syu  ✓  2511  08:01:32 :: Synchronizing package databases... ==> ERROR: Network error: HTTP Error 414 (via <Response [414]>) (via <Response [414]>) ==> ERROR: PKGBUILDer (or the requests library) had problems with fulfilling an HTTP request.

SolarAquarion: your AUR helper is probably trying to query for way too many packages at once it should split up the requests
Kwpolska commented 7 years ago

I think I fixed it. Could you please test if it works? Replace /usr/lib/python3.6/site-packages/pkgbuilder/aur.py with the updated version and tell me if that works.

SolarAquarion commented 7 years ago

@Kwpolska it works beautifully