From 17ff68ba5caeebec2d9afeea75726f84dc637055 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 5 Jan 2011 01:55:28 -0500 Subject: [PATCH] emerge-webrsync: add xz support Signed-off-by: Mike Frysinger --- bin/emerge-webrsync | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.26.2