]> git.ipfire.org Git - pakfire.git/commitdiff
snapshot: Use PAKFIRE_BUFFER_SIZE
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Sep 2022 16:11:13 +0000 (16:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Sep 2022 16:11:13 +0000 (16:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/snapshot.c

index 4fb7b682a49850ffa424cf85b16dd80b38783dbb..ed13c1cfc8e5f7e9e5ac570d964456227803cc0f 100644 (file)
@@ -31,6 +31,7 @@
 #include <pakfire/filelist.h>
 #include <pakfire/i18n.h>
 #include <pakfire/logging.h>
+#include <pakfire/private.h>
 #include <pakfire/repo.h>
 #include <pakfire/snapshot.h>
 #include <pakfire/util.h>
@@ -178,7 +179,7 @@ static int pakfire_snapshot_extract(struct pakfire* pakfire, const char* path) {
        archive_read_support_filter_zstd(archive);
 
        // Open the given file for reading
-       r = archive_read_open_filename(archive, path, 64 * 1024);
+       r = archive_read_open_filename(archive, path, PAKFIRE_BUFFER_SIZE);
        if (r) {
                ERROR(pakfire, "Could not open archive: %s\n", archive_error_string(archive));
                goto ERROR;