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

Diff of /eclass/eutils.eclass

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

Revision 1.273 Revision 1.274
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.273 2007/02/14 16:49:46 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.274 2007/02/17 00:11:42 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!
1648 shift 1648 shift
1649 1649
1650 local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE 1650 local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE
1651 local IUSEFILE=${ROOT}/var/db/pkg/${PKG}/IUSE 1651 local IUSEFILE=${ROOT}/var/db/pkg/${PKG}/IUSE
1652 1652
1653 # if the USE file doesnt exist, assume the $PKG is either
1654 # injected or package.provided
1655 [[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with"
1656
1657 # if the IUSE file doesn't exist, the read will error out, we need to handle 1653 # if the IUSE file doesn't exist, the read will error out, we need to handle
1658 # this gracefully 1654 # this gracefully
1659 if [[ ! -e ${IUSEFILE} ]] ; then 1655 if [[ ! -e ${USEFILE} ]] || [[ ! -e ${IUSEFILE} ]] ; then
1660 case ${missing_action} in 1656 case ${missing_action} in
1661 true) return 0;; 1657 true) return 0;;
1662 false) return 1;; 1658 false) return 1;;
1663 die) die "Unable to determine what USE flags $PKG was built with";; 1659 die) die "Unable to determine what USE flags $PKG was built with";;
1664 esac 1660 esac

Legend:
Removed from v.1.273  
changed lines
  Added in v.1.274

  ViewVC Help
Powered by ViewVC 1.1.20