From 5eacf44ba2640a26e83d0a633c8037482098d301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Kloo=C3=9F?= Date: Wed, 26 Nov 2014 10:09:29 +0100 Subject: [PATCH] added xz support --- bin/tartarus | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/tartarus b/bin/tartarus index 1f067bd..4275dbe 100755 --- a/bin/tartarus +++ b/bin/tartarus @@ -383,7 +383,7 @@ CURL_OPTIONS="" # # Tartarus can utilize various compression methods to the shrink the processed data # before storing it. Leaving the variable blank (which is the default) will disable -# compression, other known values are "gzip", "bzip2" and "pbzip2". +# compression, other known values are "gzip", "bzip2", "pbzip2" and "xz". COMPRESSION_METHOD="" # #=item STORAGE_METHOD @@ -768,6 +768,9 @@ case "$ASSEMBLY_METHOD" in AFIO_OPTIONS="$AFIO_OPTIONS -Z -P pbzip2" ARCHIVE_EXTENSION=".bz2" ;; + xz) + AFIO_OPTIONS="$AFIO_OPTIONS -Z -P xz" + ARCHIVE_EXTENSION=".xz" esac ;; *) @@ -793,6 +796,13 @@ case "$ASSEMBLY_METHOD" in } ARCHIVE_EXTENSION=".bz2" ;; + xz) + requireCommand xz || cleanup 1 + compression() { + xz + } + ARCHIVE_EXTENSION=".xz" + ;; esac ;; esac