From: Paul Varner Date: Mon, 20 Feb 2012 23:13:02 +0000 (-0600) Subject: Fix euse -i to not print errors from 'cat' when determining the repository name X-Git-Tag: gentoolkit-0.3.0.5~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=946097d191bea9e46768cef2ea174506dd6021bf;p=gentoolkit.git Fix euse -i to not print errors from 'cat' when determining the repository name --- diff --git a/bin/euse b/bin/euse index 0f59c91..25b718b 100755 --- 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