Fix euse to treat PORTDIR the same as an overlay for purposes of printing the reposit...
authorPaul Varner <fuzzyray@gentoo.org>
Thu, 12 May 2011 02:52:07 +0000 (21:52 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Thu, 12 May 2011 02:52:07 +0000 (21:52 -0500)
bin/euse

index 07a244d26b942326b5b228ae88d9e4d703ad2da2..65fb11910412da7b30268919cc70f8474273dc63 100755 (executable)
--- 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