projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafbf8c
)
add support for .lzma / .tar.lzma to unpack
author
Zac Medico
<zmedico@gentoo.org>
Fri, 12 Oct 2007 05:56:36 +0000
(
05:56
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 12 Oct 2007 05:56:36 +0000
(
05:56
-0000)
(trunk r7991)
svn path=/main/branches/2.1.2/; revision=8061
bin/ebuild.sh
patch
|
blob
|
history
diff --git
a/bin/ebuild.sh
b/bin/ebuild.sh
index 3f5352b2915bae80a8bd3847e26936776ae121af..4e98b6474a203815b808b5c26dfab30cedd16c09 100755
(executable)
--- 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."
;;