From: Mike Frysinger Date: Thu, 11 Nov 2004 04:10:40 +0000 (+0000) Subject: fix error checking of epatch #64944 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4a58b8a10e22b916e2d04479d20c068517f22d9;p=gentoo.git fix error checking of epatch #64944 --- diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 7fe61ca3e81a..baf9eb04159d 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.122 2004/10/31 04:34:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.123 2004/11/11 04:10:40 vapier Exp $ # # Author: Martin Schlemmer # @@ -247,7 +247,7 @@ epatch() { local EPATCH_SOURCE="$1/*.${EPATCH_SUFFIX}" fi else - if [ ! -d ${EPATCH_SOURCE} ] + if [ ! -d ${EPATCH_SOURCE} ] || [ -n "$1" ] then if [ -n "$1" -a "${EPATCH_SOURCE}" = "${WORKDIR}/patch" ] then