--- eutils.eclass-orig 2006-07-31 02:08:11.000000000 +0100 +++ eutils.eclass 2006-07-31 02:23:00.000000000 +0100 @@ -1582,13 +1582,16 @@ local opt=$1 [[ ${opt:0:1} = "-" ]] && shift || opt="-a" + if ! has_version $1 ; then + # Package is not installed or package.provided + return 1 + fi + local PKG=$(best_version $1) shift + # if the USE file doesn't exist, assume the $PKG is package.provided 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})