summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-10-07 18:00:56 +0000
committerMike Frysinger <vapier@gentoo.org>2007-10-07 18:00:56 +0000
commite21350865602e559365b2f8b95918f744fa0f813 (patch)
tree158ef6d5dca28721f846ff8b0e1f02bf44b6e872
parented01b239078de37c4984ec4675b4e2eda01b14d0 (diff)
downloadportage-e21350865602e559365b2f8b95918f744fa0f813.tar.gz
portage-e21350865602e559365b2f8b95918f744fa0f813.tar.bz2
portage-e21350865602e559365b2f8b95918f744fa0f813.zip
add support for .lzma / .tar.lzma to unpack
svn path=/main/trunk/; revision=7991
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index f5e625ed6..b298724e2 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -386,6 +386,14 @@ unpack() {
a|deb)
ar x "${srcdir}/${x}" || die "$myfail"
;;
+ lzma)
+ if [ "${y}" == "tar" ]; then
+ lzma -dc "${srcdir}${x}" | tar xof - ${tar_opts}
+ assert "$myfail"
+ else
+ lzma -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
+ fi
+ ;;
*)
vecho "unpack ${x}: file format not recognized. Ignoring."
;;