]> git.ipfire.org Git - pakfire.git/commitdiff
archive writer: Don't use --long for Zstandard
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 13:26:59 +0000 (13:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 13:26:59 +0000 (13:26 +0000)
This seems to be too complicated and there is too little value in it.
Packages cannot be uncompressed using the zstd command without enabling
long mode, too. libarchive requires the same which is also not
implemented.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/archive_writer.c

index 493e05a97cf26ba0057c603262d4719f916b4433..660e1b753a4bd099c64209817a49456f4396930c 100644 (file)
@@ -209,16 +209,6 @@ static int pakfire_archive_writer_setup_archive(struct pakfire_archive_writer* s
                                        archive_error_string(self->archive));
                                return -ENOTSUP;
                        }
-
-#if ARCHIVE_VERSION_NUMBER >= 3007002
-                       // Enable long mode (supported from libarchive >= 3.7.2)
-                       r = archive_write_set_filter_option(self->archive, NULL, "long", "31");
-                       if (r) {
-                               ERROR(self->ctx, "Failed to enable Zstandard long mode: %s\n",
-                                       archive_error_string(self->archive));
-                               return -ENOTSUP;
-                       }
-#endif /* ARCHIVE_VERSION_NUMBER >= 3007002 */
                        break;
        }