Fix euse -i to not print errors from 'cat' when determining the repository name
authorPaul Varner <fuzzyray@gentoo.org>
Mon, 20 Feb 2012 23:13:02 +0000 (17:13 -0600)
committerPaul Varner <fuzzyray@gentoo.org>
Mon, 20 Feb 2012 23:13:02 +0000 (17:13 -0600)
bin/euse

index 0f59c9171f34d7e062143a971ac2923e70c83b8b..25b718b69ec41508c745d34d96d9fa9f2239ce76 100755 (executable)
--- a/bin/euse
+++ b/bin/euse
@@ -384,7 +384,7 @@ get_useflaglist_ebuild() {
        local pkg=$(echo ${1} | cut -d/ -f2)
        declare append
        for portdir in ${ALL_PORTDIRS[@]}; do
-               if [[ -s $(dirname ${portdir}/repo_name) ]]; then
+               if [[ -s "${portdir}/profiles/repo_name" ]]; then
                        overlay="$(cat "${portdir}/profiles/repo_name")"
                else
                        # XXX: May be better to use full path