Don't scan for patches in FILESDIR if it doesn't exist.
authorJustin Bronder <jsbronder@gentoo.org>
Tue, 11 Mar 2008 18:01:01 +0000 (18:01 +0000)
committerJustin Bronder <jsbronder@gentoo.org>
Tue, 11 Mar 2008 18:01:01 +0000 (18:01 +0000)
eclass/fortran.eclass

index 6cec232ad7659a9faf5e8401bc97dd74d467428a..5b4cf6ead8a503563084e318a8599389b367c821 100644 (file)
@@ -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}-*")