/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.254 Revision 1.255
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.254 2006/10/18 21:35:19 drizzt Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.255 2006/10/24 17:27:31 wolf31o2 Exp $
4# 4#
5# This eclass is for general purpose functions that most ebuilds 5# This eclass is for general purpose functions that most ebuilds
6# have to implement themselves. 6# have to implement themselves.
7# 7#
8# NB: If you add anything, please comment it! 8# NB: If you add anything, please comment it!
1210 # accepted ... if we don't find a match, we make the user accept 1210 # accepted ... if we don't find a match, we make the user accept
1211 local shopts=$- 1211 local shopts=$-
1212 local alic 1212 local alic
1213 set -o noglob #so that bash doesn't expand "*" 1213 set -o noglob #so that bash doesn't expand "*"
1214 for alic in ${ACCEPT_LICENSE} ; do 1214 for alic in ${ACCEPT_LICENSE} ; do
1215 if [[ ${alic} == * || ${alic} == ${l} ]]; then 1215 if [[ ${alic} == ${l} ]]; then
1216 set +o noglob; set -${shopts} #reset old shell opts 1216 set +o noglob; set -${shopts} #reset old shell opts
1217 return 0 1217 return 0
1218 fi 1218 fi
1219 done 1219 done
1220 set +o noglob; set -$shopts #reset old shell opts 1220 set +o noglob; set -$shopts #reset old shell opts

Legend:
Removed from v.1.254  
changed lines
  Added in v.1.255

  ViewVC Help
Powered by ViewVC 1.1.20