This repository has been archived by the owner on May 31, 2018. It is now read-only.
Automatically split the request for package info into URI lengths les #547
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…s than 8125 chars
Divides the request into requests at most 8000 characters long, allowing the request to be successful.
Modifies the DownloadJson() function of pacaur.
Potentially addresses #209,#238 , #504
~~ Do note that while this fixes the bug in pacaur, it appears that the YAJL tools (json_verify, json_reformat) have a maximum allowed json character limit of 2^18=262144, and so if the rpc return is larger than this limit, json_verify and json_reformat fail causing pacaur to fail. Although as I have not communicated with the devs it is possible that I just happen to have errors around that location in the files I test. Due to this I cannot completely test the pacaur to successful completion, however in my tests this fixed DownloadJson(). ~~It appears that my error was caused by the use of sed, and was fixed by running sed twice.