summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-01-05 01:55:28 -0500
committerMike Frysinger <vapier@gentoo.org>2011-01-05 01:55:28 -0500
commit9ff806473fe873346f0656f266550f5b1cf368cb (patch)
treef54122aee897d68796f3342e16a84e50481f704f
parent92b2aea5a38c29811c1069dde4d0bc2fec07781c (diff)
downloadportage-9ff806473fe873346f0656f266550f5b1cf368cb.tar.gz
portage-9ff806473fe873346f0656f266550f5b1cf368cb.tar.bz2
portage-9ff806473fe873346f0656f266550f5b1cf368cb.zip
emerge-webrsync: add xz support
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-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"