From: Zac Medico Date: Fri, 12 Oct 2007 05:56:36 +0000 (-0000) Subject: add support for .lzma / .tar.lzma to unpack X-Git-Tag: v2.1.3.16~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f197ea80370f3bfc0e956b668fc6b55d059422a2;p=portage.git add support for .lzma / .tar.lzma to unpack (trunk r7991) svn path=/main/branches/2.1.2/; revision=8061 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 3f5352b29..4e98b6474 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -496,6 +496,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." ;;