]> git.ipfire.org Git - pakfire.git/commitdiff
archive: Log the format and compression
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 18:11:22 +0000 (18:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 18:11:22 +0000 (18:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/archive.c

index 8872a78753e404a821ef851b1c3e7fb6333f4a45..555cd23a70faba322cbbc08ff85e8c4092b3fc7e 100644 (file)
@@ -473,8 +473,6 @@ static int pakfire_archive_parse_format(struct pakfire_archive* archive,
                        return -ENOTSUP;
        }
 
-       CTX_DEBUG(archive->ctx, "Archive format is %u\n", archive->format);
-
        return 0;
 }
 
@@ -582,6 +580,9 @@ static int __pakfire_archive_read_metadata(struct pakfire_archive* archive,
                r = pakfire_archive_parse_format(archive, data, length);
                if (r)
                        goto ERROR;
+
+               CTX_DEBUG(archive->ctx, "Archive format is %u (%s using %s)\n",
+                       archive->format, archive_format_name(a), archive_filter_name(a, 0));
        }
 
 ERROR: