We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69aa731 commit 8715af4Copy full SHA for 8715af4
1 file changed
bin/xbps-query/list.c
@@ -174,6 +174,7 @@ list_pkgdb(struct xbps_handle *xhp, int (*filter)(xbps_object_t), const char *fo
174
int r;
175
if (json > 0) {
176
pr.indent = (json-1) * 2;
177
+ pr.compact = pr.indent == 0;
178
pr.file = stdout;
179
ctx.json = ≺
180
} else if (format) {
0 commit comments