| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.291 2007/10/10 20:34:08 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.292 2007/10/14 21:55:35 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: eutils.eclass |
5 | # @ECLASS: eutils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # base-system@gentoo.org |
7 | # base-system@gentoo.org |
| 8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
| … | |
… | |
| 1475 | while read point node fs foo ; do |
1475 | while read point node fs foo ; do |
| 1476 | [[ " cd9660 iso9660 udf " != *" ${fs} "* ]] && \ |
1476 | [[ " cd9660 iso9660 udf " != *" ${fs} "* ]] && \ |
| 1477 | ! [[ ${fs} == "subfs" && ",${opts}," == *",fs=cdfss,"* ]] \ |
1477 | ! [[ ${fs} == "subfs" && ",${opts}," == *",fs=cdfss,"* ]] \ |
| 1478 | && continue |
1478 | && continue |
| 1479 | point=${point//\040/ } |
1479 | point=${point//\040/ } |
|
|
1480 | [[ ! -d ${point}/${dir} ]] && continue |
| 1480 | [[ -z $(find "${point}/${dir}" -maxdepth 1 -iname "${file}") ]] && continue |
1481 | [[ -z $(find "${point}/${dir}" -maxdepth 1 -iname "${file}") ]] && continue |
| 1481 | export CDROM_ROOT=${point} |
1482 | export CDROM_ROOT=${point} |
| 1482 | export CDROM_SET=${i} |
1483 | export CDROM_SET=${i} |
| 1483 | export CDROM_MATCH=${cdset[${i}]} |
1484 | export CDROM_MATCH=${cdset[${i}]} |
| 1484 | return |
1485 | return |