From 134d1dd1a8e42f8d8a3cde39817c0fbad838e6ae Mon Sep 17 00:00:00 2001 From: Justin Bronder Date: Tue, 11 Mar 2008 18:01:01 +0000 Subject: [PATCH] Don't scan for patches in FILESDIR if it doesn't exist. --- eclass/fortran.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/fortran.eclass b/eclass/fortran.eclass index 6cec232ad765..5b4cf6ead8a5 100644 --- a/eclass/fortran.eclass +++ b/eclass/fortran.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/fortran.eclass,v 1.17 2007/03/13 00:40:54 kugelfang Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/fortran.eclass,v 1.18 2008/03/11 18:01:01 jsbronder Exp $ # # Author: Danny van Dyk # @@ -159,7 +159,7 @@ need_fortran() { # patch_fortran(): # Apply necessary patches for ${FORTRANC} patch_fortran() { - if [ -z "${FORTRANC}" ]; then + if [[ -z "${FORTRANC}" || ! -d "${FILESDIR}" ]]; then return fi local PATCHES=$(find ${FILESDIR} -name "${P}-${FORTRANC}-*") -- 2.26.2