From: Mike Frysinger Date: Sat, 22 Oct 2005 19:04:02 +0000 (+0000) Subject: if a package doesnt exist, return success with built_with_use X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25aa86d648aeec50ebac2c748c54671cb21850a3;p=gentoo.git if a package doesnt exist, return success with built_with_use --- diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 62dbaaecf993..3bf1767080b5 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.212 2005/10/22 02:32:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.213 2005/10/22 19:04:02 vapier Exp $ # # Author: Martin Schlemmer # @@ -1557,8 +1557,11 @@ built_with_use() { local PKG=$(best_version $1) shift - local USEFILE="${ROOT}/var/db/pkg/${PKG}/USE" - [[ ! -e ${USEFILE} ]] && return 1 + local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE + + # if the USE file doesnt exist, assume the $PKG is either + # injected or package.provided + [[ ! -e ${USEFILE} ]] && return 0 local USE_BUILT=$(<${USEFILE}) while [[ $# -gt 0 ]] ; do