From: Michael Tremer Date: Thu, 25 Mar 2021 16:24:57 +0000 (+0000) Subject: snapshot: Disable padding last block to avoid zstd to fail X-Git-Tag: 0.9.28~1285^2~465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=097a0064210288920ab4361aeea6375b13273233;p=pakfire.git snapshot: Disable padding last block to avoid zstd to fail Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/snapshot.c b/src/libpakfire/snapshot.c index 3bdb68422..d87d90271 100644 --- a/src/libpakfire/snapshot.c +++ b/src/libpakfire/snapshot.c @@ -68,7 +68,6 @@ static struct archive* pakfire_snapshot_create_archive(Pakfire pakfire, FILE* f) goto ERROR; } -#if 0 // Enable Zstd r = archive_write_add_filter_zstd(a); if (r) { @@ -84,7 +83,9 @@ static struct archive* pakfire_snapshot_create_archive(Pakfire pakfire, FILE* f) archive_error_string(a)); goto ERROR; } -#endif + + // Do not pad the last block + archive_write_set_bytes_in_last_block(a, 1); // Write archive to file r = archive_write_open_FILE(a, f);