]> git.ipfire.org Git - pakfire.git/commitdiff
packager: Do not dump JSON in pretty format
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 May 2022 15:03:16 +0000 (15:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 May 2022 15:03:16 +0000 (15:03 +0000)
This is not pretty enough to be easily read on the CLI, so we can then
dump it as compact as possible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/packager.c

index ac8e71d4be00786e5619dabb0ec25290d8786554..c88a393e7753067dc9ae6992e9337293b27220be 100644 (file)
@@ -475,8 +475,7 @@ static char* pakfire_packager_make_metadata(struct pakfire_packager* packager) {
                goto ERROR;
 
        // Serialize JSON to file
-       const char* s = json_object_to_json_string_ext(md,
-               JSON_C_TO_STRING_PRETTY|JSON_C_TO_STRING_PRETTY_TAB);
+       const char* s = json_object_to_json_string_ext(md, 0);
        if (!s)
                goto ERROR;