aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-01-05 06:55:28 (GMT)
committerMike Frysinger <vapier@gentoo.org>2011-01-05 06:55:28 (GMT)
commit9ff806473fe873346f0656f266550f5b1cf368cb (patch)
treef54122aee897d68796f3342e16a84e50481f704f
parentREQUIRED_USE: when unsatisfied, show current USE (diff)
downloadportage-9ff806.zip
portage-9ff806.tar.gz
portage-9ff806.tar.bz2
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 195a3de..9359043 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"