summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge-webrsync2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index 195a3de22..93590436a 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -63,6 +63,7 @@ do_tar() {
local file=$1; shift
local decompressor
case ${file} in
+ *.xz) decompressor="xzcat" ;;
*.lzma) decompressor="lzcat" ;;
*.bz2) decompressor="bzcat" ;;
*.gz) decompressor="zcat" ;;
@@ -229,6 +230,7 @@ do_snapshot() {
# lzma is not supported in app-arch/tarsync, so use
# bz2 format if we have tarsync.
if ! type -P tarsync > /dev/null ; then
+ type -P xzcat > /dev/null && compressions="${compressions} xz"
type -P lzcat > /dev/null && compressions="${compressions} lzma"
fi
type -P bzcat > /dev/null && compressions="${compressions} bz2"