From: Michael Tremer Date: Wed, 24 Mar 2021 11:50:21 +0000 (+0000) Subject: snapshots: Temporarily disable ZSTD compression because it corrupts them X-Git-Tag: 0.9.28~1285^2~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d4e4da4bf929a6b42859751f0df340208c5a8b;p=pakfire.git snapshots: Temporarily disable ZSTD compression because it corrupts them Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/snapshot.c b/src/libpakfire/snapshot.c index c6bdecc18..3bdb68422 100644 --- a/src/libpakfire/snapshot.c +++ b/src/libpakfire/snapshot.c @@ -68,6 +68,7 @@ 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) { @@ -83,6 +84,7 @@ static struct archive* pakfire_snapshot_create_archive(Pakfire pakfire, FILE* f) archive_error_string(a)); goto ERROR; } +#endif // Write archive to file r = archive_write_open_FILE(a, f); diff --git a/src/pakfire/builder.py b/src/pakfire/builder.py index 15b40fca1..13803fd6b 100644 --- a/src/pakfire/builder.py +++ b/src/pakfire/builder.py @@ -185,7 +185,7 @@ class BuilderContext(object): Sets up the environment by installing some basic packages """ # XXX this needs to be unique for each distribution - snapshot_path = "/tmp/pakfire-snapshot.tar.zst" + snapshot_path = "/tmp/pakfire-snapshot.tar" # Restore the snapshot if available try: