From: Michael Sterrett Date: Tue, 11 May 2010 20:08:02 +0000 (+0000) Subject: add -m1 to grep for unpack_makeself for bug #319059 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c095cd186862302c28d972a8922f17b516c46e8a;p=gentoo.git add -m1 to grep for unpack_makeself for bug #319059 --- diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 7ac958bfe278..8a260ca3140e 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.342 2010/04/19 19:54:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.343 2010/05/11 20:08:02 mr_bones_ Exp $ # @ECLASS: eutils.eclass # @MAINTAINER: @@ -1329,7 +1329,7 @@ unpack_makeself() { local shrtsrc=$(basename "${src}") echo ">>> Unpacking ${shrtsrc} to ${PWD}" if [[ -z ${skip} ]] ; then - local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}') + local ver=$(grep -m1 -a '#.*Makeself' "${src}" | awk '{print $NF}') local skip=0 exe=tail case ${ver} in