summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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."
;;