From: Mike Frysinger Date: Sun, 7 Oct 2007 18:00:56 +0000 (-0000) Subject: add support for .lzma / .tar.lzma to unpack X-Git-Tag: v2.2_pre1~692 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e21350865602e559365b2f8b95918f744fa0f813;p=portage.git add support for .lzma / .tar.lzma to unpack svn path=/main/trunk/; revision=7991 --- 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." ;;