From: Paul Varner Date: Thu, 12 May 2011 02:52:07 +0000 (-0500) Subject: Fix euse to treat PORTDIR the same as an overlay for purposes of printing the reposit... X-Git-Tag: gentoolkit-0.3.0.2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f8eb46209ebeb48c6ff515981bbf67819e00d0f7;p=gentoolkit.git Fix euse to treat PORTDIR the same as an overlay for purposes of printing the repository name. --- diff --git a/bin/euse b/bin/euse index 07a244d..65fb119 100755 --- a/bin/euse +++ b/bin/euse @@ -384,15 +384,11 @@ get_useflaglist_ebuild() { local pkg=$(echo ${1} | cut -d/ -f2) declare append for portdir in ${ALL_PORTDIRS[@]}; do - if [[ $portdir == $PORTDIR ]]; then - overlay="" + if [[ -s $(dirname ${portdir}/repo_name) ]]; then + overlay="$(cat "${portdir}/profiles/repo_name")" else - if [[ -s $(dirname ${portdir}/repo_name) ]]; then - overlay="$(cat "${portdir}/profiles/repo_name")" - else - # XXX: May be better to use full path - overlay="$(basename "${portdir}")" - fi + # XXX: May be better to use full path + overlay="$(basename "${portdir}")" fi # Open the ebuild file and retrieve defined USE flags [[ ! -d "$portdir/${1}" ]] && continue