oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

Specify RPC version as 2 to get expected return #57

Closed YutaSakata closed 8 years ago

YutaSakata commented 8 years ago

Due to changes of RPC, we get unexpected return like

{"version":1,"type":"info","resultcount":0,"results":[]}

via https://aur.archlinux.org/rpc.php without v=foo param.

To avoid it, I changed /rpc.php, the rpc endpoint to /rpc/ and added v param by modifying RPCURL.

With v=2 query, We can get JSON from RPC same as before, so there are nothing to do any more for apacman to work correctly.

PS. It is hard for me to make myself understood in English, so please ask me if you cannot understand what I say.

YutaSakata commented 8 years ago

I found the issue about it.

56

YutaSakata commented 8 years ago

@oshazard PTAL

oshazard commented 8 years ago

Merged pull request from @bts368 referenced in issue #58

YutaSakata commented 8 years ago

I think #58 contains redundant changes, but I respect your decision.