From 708cf86b9477f16ff3f7f5b3261e8822957f064c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 6 Aug 2006 20:20:14 +0000 Subject: [PATCH] if unable to find USE file for pkg, have built_with_use die --- eclass/eutils.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 803c5d11e14d..c3fc75361622 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.245 2006/07/15 19:26:55 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.246 2006/08/06 20:20:14 vapier Exp $ # # This eclass is for general purpose functions that most ebuilds # have to implement themselves. @@ -1589,7 +1589,7 @@ built_with_use() { # if the USE file doesnt exist, assume the $PKG is either # injected or package.provided - [[ ! -e ${USEFILE} ]] && return 0 + [[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with" local USE_BUILT=$(<${USEFILE}) while [[ $# -gt 0 ]] ; do -- 2.26.2