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

Diff of /eclass/eutils.eclass

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

Revision 1.245 Revision 1.246
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.245 2006/07/15 19:26:55 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.246 2006/08/06 20:20:14 vapier 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!
1587 1587
1588 local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE 1588 local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE
1589 1589
1590 # if the USE file doesnt exist, assume the $PKG is either 1590 # if the USE file doesnt exist, assume the $PKG is either
1591 # injected or package.provided 1591 # injected or package.provided
1592 [[ ! -e ${USEFILE} ]] && return 0 1592 [[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with"
1593 1593
1594 local USE_BUILT=$(<${USEFILE}) 1594 local USE_BUILT=$(<${USEFILE})
1595 while [[ $# -gt 0 ]] ; do 1595 while [[ $# -gt 0 ]] ; do
1596 if [[ ${opt} = "-o" ]] ; then 1596 if [[ ${opt} = "-o" ]] ; then
1597 has $1 ${USE_BUILT} && return 0 1597 has $1 ${USE_BUILT} && return 0

Legend:
Removed from v.1.245  
changed lines
  Added in v.1.246

  ViewVC Help
Powered by ViewVC 1.1.20