From f8eb46209ebeb48c6ff515981bbf67819e00d0f7 Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Wed, 11 May 2011 21:52:07 -0500 Subject: [PATCH] Fix euse to treat PORTDIR the same as an overlay for purposes of printing the repository name. --- bin/euse | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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 -- 2.26.2