Skip to content

debci-status: JSON loop on packages not results

g0tmi1k requested to merge g0tmi1k/debci:status_json_loop into master

This was based on fe6fc82b (via !97 (closed)).


The json output now is closer to what happens with non-json output, and has the same amount of results. This is because it now follows the same logic as the else statement, which is below the changes (this JSON logic is in elseifelsif options[:json]).

Previously, it was only giving JSON output for jobs, whereas non-json output was giving output for packages.

Example

Before:

# sudo -u debci debci status --suite kali-dev --all | wc -l
20936
#
# sudo -u debci debci status --suite kali-dev --all --json | jq '.[].name' | wc -l
14671
#

20936 (packages) - 14671 (jobs) = 6265 missing results

After:

# sudo -u debci debci status --suite kali-dev --all --json | jq '.[].name' | wc -l
20936
#

20936 (packages) - 20936 (jobs) = 0 missing results

Edited by g0tmi1k

Merge request reports

Loading