summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-11 02:21:47 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-11 02:21:47 +0000
commit7a1de14e8e14edb1ca7126006567c9e823566f05 (patch)
treeb0a17e58debcc27a37e56dac3048f90c59addb30 /eclass
parentrevision bump for heimdal/mit setuid security advisory. see bug #143371 (diff)
downloadhistorical-7a1de14e8e14edb1ca7126006567c9e823566f05.tar.gz
historical-7a1de14e8e14edb1ca7126006567c9e823566f05.tar.bz2
historical-7a1de14e8e14edb1ca7126006567c9e823566f05.zip
add a better die message from Ed Catmur when best_version() fails #143424
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index c3fc75361622..d4b527667b27 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.246 2006/08/06 20:20:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.247 2006/08/11 02:21:47 vapier Exp $
#
# This eclass is for general purpose functions that most ebuilds
# have to implement themselves.
@@ -1583,6 +1583,7 @@ built_with_use() {
[[ ${opt:0:1} = "-" ]] && shift || opt="-a"
local PKG=$(best_version $1)
+ [[ -z ${PKG} ]] && die "Unable to resolve $1 to an installed package"
shift
local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE