summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2008-03-11 18:01:01 +0000
committerJustin Bronder <jsbronder@gentoo.org>2008-03-11 18:01:01 +0000
commitaf82dab4260b795a66b9ea707c83cf78c6cddd9f (patch)
tree8ab0200031af3f4498a003407ad8e98a84424be7 /eclass
parentuse emake instead of make (diff)
downloadgentoo-2-af82dab4260b795a66b9ea707c83cf78c6cddd9f.tar.gz
gentoo-2-af82dab4260b795a66b9ea707c83cf78c6cddd9f.tar.bz2
gentoo-2-af82dab4260b795a66b9ea707c83cf78c6cddd9f.zip
Don't scan for patches in FILESDIR if it doesn't exist.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/fortran.eclass4
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}-*")