summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-08 18:40:14 +0000
committerMike Frysinger <vapier@gentoo.org>2009-02-08 18:40:14 +0000
commit7e2ea092be5eb4001cb7787b7528e0a379834ec2 (patch)
tree47d3f0a3115d19a09ebff07792aea68b4359b617
parent4930c3e92b26f63aedcdef30d55947fab4a7713f (diff)
downloadportage-7e2ea092be5eb4001cb7787b7528e0a379834ec2.tar.gz
portage-7e2ea092be5eb4001cb7787b7528e0a379834ec2.tar.bz2
portage-7e2ea092be5eb4001cb7787b7528e0a379834ec2.zip
add support for .xz compressed files like .lzma
svn path=/main/trunk/; revision=12593
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 301eb7949..93558f39e 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -434,6 +434,14 @@ unpack() {
lzma -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
fi
;;
+ xz)
+ if [ "${y}" == "tar" ]; then
+ xz -dc "${srcdir}${x}" | tar xof - ${tar_opts}
+ assert "$myfail"
+ else
+ xz -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
+ fi
+ ;;
*)
vecho "unpack ${x}: file format not recognized. Ignoring."
;;