Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 139842 | Differences between
and this patch

Collapse All | Expand All

(-)eutils.eclass-orig (-3 / +6 lines)
Lines 1582-1594 Link Here
1582
	local opt=$1
1582
	local opt=$1
1583
	[[ ${opt:0:1} = "-" ]] && shift || opt="-a"
1583
	[[ ${opt:0:1} = "-" ]] && shift || opt="-a"
1584
1584
1585
	if ! has_version $1 ; then
1586
		# Package is not installed or package.provided
1587
		return 1
1588
	fi
1589
1585
	local PKG=$(best_version $1)
1590
	local PKG=$(best_version $1)
1586
	shift
1591
	shift
1587
1592
1593
	# if the USE file doesn't exist, assume the $PKG is package.provided
1588
	local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE
1594
	local USEFILE=${ROOT}/var/db/pkg/${PKG}/USE
1589
1590
	# if the USE file doesnt exist, assume the $PKG is either
1591
	# injected or package.provided
1592
	[[ ! -e ${USEFILE} ]] && return 0
1595
	[[ ! -e ${USEFILE} ]] && return 0
1593
1596
1594
	local USE_BUILT=$(<${USEFILE})
1597
	local USE_BUILT=$(<${USEFILE})

Return to bug 139842