From: Mike Frysinger Date: Wed, 5 Jan 2011 06:55:28 +0000 (-0500) Subject: emerge-webrsync: add xz support X-Git-Tag: v2.1.9.30~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17ff68ba5caeebec2d9afeea75726f84dc637055;p=portage.git emerge-webrsync: add xz support Signed-off-by: Mike Frysinger --- 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"