diff options
author | Justin Bronder <jsbronder@gentoo.org> | 2008-03-11 18:01:01 +0000 |
---|---|---|
committer | Justin Bronder <jsbronder@gentoo.org> | 2008-03-11 18:01:01 +0000 |
commit | 134d1dd1a8e42f8d8a3cde39817c0fbad838e6ae (patch) | |
tree | acf1d75e93129575de5be827d88e017c2db075a4 /eclass/fortran.eclass | |
parent | use emake instead of make (diff) | |
download | historical-134d1dd1a8e42f8d8a3cde39817c0fbad838e6ae.tar.gz historical-134d1dd1a8e42f8d8a3cde39817c0fbad838e6ae.tar.bz2 historical-134d1dd1a8e42f8d8a3cde39817c0fbad838e6ae.zip |
Don't scan for patches in FILESDIR if it doesn't exist.
Diffstat (limited to 'eclass/fortran.eclass')
-rw-r--r-- | eclass/fortran.eclass | 4 |
1 files 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 <kugelfang@gentoo.org> # @@ -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}-*") |