diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-06 03:05:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-06 03:05:26 +0000 |
commit | d4cc329617d355e658bb4cc45a1f3bf457533d6f (patch) | |
tree | 9b31e970336c44a496917275616c35c33ff01fea /eclass | |
parent | header fix (diff) | |
download | historical-d4cc329617d355e658bb4cc45a1f3bf457533d6f.tar.gz historical-d4cc329617d355e658bb4cc45a1f3bf457533d6f.tar.bz2 historical-d4cc329617d355e658bb4cc45a1f3bf457533d6f.zip |
case insentive cd matching #23935
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games.eclass | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index 681cc94983ac..832f0f888d5b 100644 --- a/eclass/games.eclass +++ b/eclass/games.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.48 2003/08/05 04:22:51 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.49 2003/09/06 03:05:26 vapier Exp $ # # devlist: {vapier,wolf31o2,msterret}@gentoo.org # @@ -127,8 +127,7 @@ games_get_cd() { export GAMES_CD=${GAMES_CDROM} if [ -z "${GAMES_CD}" ] ; then for mline in `mount | egrep -e '(iso|cdrom)' | awk '{print $3}'` ; do - [ -d ${mline}/${1} ] && GAMES_CD=${mline} || - [ -f ${mline}/${1} ] && GAMES_CD=${mline} + find ${mline} -iname ${1} -maxdepth 1 -printf '' && GAMES_CD=${mline} done fi [ ! -z "${GAMES_CD}" ] && einfo "Using ${GAMES_CD} as the data source" |