From f197ea80370f3bfc0e956b668fc6b55d059422a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Oct 2007 05:56:36 +0000 Subject: [PATCH] add support for .lzma / .tar.lzma to unpack (trunk r7991) svn path=/main/branches/2.1.2/; revision=8061 --- bin/ebuild.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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." ;; -- 2.26.2