diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-18 15:09:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-04-18 15:09:16 +0000 |
commit | f3ea1028b458aa2e5577b482955e4304e08770b8 (patch) | |
tree | e7da53d2b16766068b26e8920f0957f2cf858807 /eclass/eutils.eclass | |
parent | Version bump (diff) | |
download | historical-f3ea1028b458aa2e5577b482955e4304e08770b8.tar.gz historical-f3ea1028b458aa2e5577b482955e4304e08770b8.tar.bz2 historical-f3ea1028b458aa2e5577b482955e4304e08770b8.zip |
unpack_makeself: catch errors from `file`
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r-- | eclass/eutils.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 41470ccf1151..b2b10ff4d4b5 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.355 2011/03/18 20:36:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.356 2011/04/18 15:09:16 vapier Exp $ # @ECLASS: eutils.eclass # @MAINTAINER: @@ -1393,9 +1393,9 @@ unpack_makeself() { esac # lets grab the first few bytes of the file to figure out what kind of archive it is - local tmpfile=$(emktemp) + local filetype tmpfile=$(emktemp) eval ${exe} 2>/dev/null | head -c 512 > "${tmpfile}" - local filetype=$(file -b "${tmpfile}") + filetype=$(file -b "${tmpfile}") || die case ${filetype} in *tar\ archive*) eval ${exe} | tar --no-same-owner -xf - |