summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2007-02-14 16:49:46 +0000
committerDoug Goldstein <cardoe@gentoo.org>2007-02-14 16:49:46 +0000
commitc2b578a557a33b0729fd29835150ee7753238aaa (patch)
tree2ce26c22ec961b16fbf597f59272cefb53d38e98 /eclass/eutils.eclass
parentRemoved unused revision. (diff)
downloadhistorical-c2b578a557a33b0729fd29835150ee7753238aaa.tar.gz
historical-c2b578a557a33b0729fd29835150ee7753238aaa.tar.bz2
historical-c2b578a557a33b0729fd29835150ee7753238aaa.zip
Follow the --missing request when the IUSE file is missing rather then always erroring out.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index cb0131efa402..7765685d860e 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.272 2007/01/31 04:40:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.273 2007/02/14 16:49:46 cardoe Exp $
#
# This eclass is for general purpose functions that most ebuilds
# have to implement themselves.
@@ -1654,6 +1654,16 @@ built_with_use() {
# injected or package.provided
[[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with"
+ # if the IUSE file doesn't exist, the read will error out, we need to handle
+ # this gracefully
+ if [[ ! -e ${IUSEFILE} ]] ; then
+ case ${missing_action} in
+ true) return 0;;
+ false) return 1;;
+ die) die "Unable to determine what USE flags $PKG was built with";;
+ esac
+ fi
+
local IUSE_BUILT=$(<${IUSEFILE})
# Don't check USE_EXPAND #147237
local expand