]> git.ipfire.org Git - pakfire.git/commitdiff
snapshots: Temporarily disable ZSTD compression because it corrupts them
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Mar 2021 11:50:21 +0000 (11:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Mar 2021 11:50:21 +0000 (11:50 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/snapshot.c
src/pakfire/builder.py

index c6bdecc185eb6ceb96feef3307ed89632e413030..3bdb68422636ba1f3565d911aaa0201bc9f46509 100644 (file)
@@ -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);
index 15b40fca1af3c46ad948024b8c19d0e76f5945ef..13803fd6b2afaa16a7d0a0897d70a15356341ae1 100644 (file)
@@ -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: