diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-01 01:31:48 +0100 |
---|---|---|
committer | vapier <vapier@gentoo.org> | 2005-11-01 01:31:48 +0100 |
commit | d89d7c62cff3e8dc420c109879b2cb96ea838d3d (patch) | |
tree | 3e0276b9a322a438d3cbdccd8db393f6592c0b7d /bin/ebuild-env/ebuild-default-functions.sh | |
parent | [savior @ 2219] (diff) | |
download | pkgcore-d89d7c62cff3e8dc420c109879b2cb96ea838d3d.tar.gz pkgcore-d89d7c62cff3e8dc420c109879b2cb96ea838d3d.tar.bz2 pkgcore-d89d7c62cff3e8dc420c109879b2cb96ea838d3d.zip |
[savior @ 2220]
add support for unpacking lha/jar files
Diffstat (limited to 'bin/ebuild-env/ebuild-default-functions.sh')
-rwxr-xr-x | bin/ebuild-env/ebuild-default-functions.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ebuild-env/ebuild-default-functions.sh b/bin/ebuild-env/ebuild-default-functions.sh index 79b2229f..f60f90d6 100755 --- a/bin/ebuild-env/ebuild-default-functions.sh +++ b/bin/ebuild-env/ebuild-default-functions.sh @@ -2,7 +2,7 @@ # ebuild-default-functions.sh; default functions for ebuild env that aren't saved- specific to the portage instance. # Copyright 2004-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Id: ebuild-default-functions.sh 1929 2005-08-26 00:12:11Z ferringb $ +# $Id: ebuild-default-functions.sh 2220 2005-11-01 01:31:48Z vapier $ has_version() { @@ -116,7 +116,7 @@ unpack() bzip2 -dc "${srcdir}${x}" | tar ${tarvars} -xf - assert "$myfail" ;; - ZIP|zip) + ZIP|zip|jar) unzip -qo "${srcdir}${x}" || die "$myfail" ;; gz|Z|z) @@ -138,6 +138,9 @@ unpack() RAR|rar) unrar x -idq "${srcdir}/${x}" || die "$myfail" ;; + LHa|LHA|lha|lzh) + lha xqf "${srcdir}/${x}" || die "$myfail" + ;; *) echo "unpack ${x}: file format not recognized. Ignoring." ;; |