From c095cd186862302c28d972a8922f17b516c46e8a Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Tue, 11 May 2010 20:08:02 +0000 Subject: add -m1 to grep for unpack_makeself for bug #319059 --- eclass/eutils.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad