summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2011-05-10 21:06:19 -0500
committerPaul Varner <fuzzyray@gentoo.org>2011-05-10 21:06:19 -0500
commitd1b60d492ca1ba845facb7a94ddfe56620584c36 (patch)
tree3355db0a1a675905b08cbeb2a6f6c6c64ff43213 /bin
parent6d3eb84a5739faf2c4dcb6030791fdd7491ce570 (diff)
downloadgentoolkit-d1b60d492ca1ba845facb7a94ddfe56620584c36.tar.gz
Fix euse to print proper statement for egencache. Bug 366673
Diffstat (limited to 'bin')
-rwxr-xr-xbin/euse20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/euse b/bin/euse
index 5590fbb..07a244d 100755
--- a/bin/euse
+++ b/bin/euse
@@ -384,6 +384,16 @@ get_useflaglist_ebuild() {
local pkg=$(echo ${1} | cut -d/ -f2)
declare append
for portdir in ${ALL_PORTDIRS[@]}; do
+ if [[ $portdir == $PORTDIR ]]; then
+ overlay=""
+ 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
+ fi
# Open the ebuild file and retrieve defined USE flags
[[ ! -d "$portdir/${1}" ]] && continue
if [[ ! -d "$portdir/metadata/cache" ]]; then
@@ -397,16 +407,6 @@ get_useflaglist_ebuild() {
| sed -e "s:$portdir/metadata/cache/${1}-::g" \
| while read -d $'\n' version; do
IFS=$'\n'
- if [[ $portdir == $PORTDIR ]]; then
- overlay=""
- 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
- fi
if [[ ! -e "$portdir/metadata/cache/${1}-$version" ]]; then
# Repo does not have this particular package
continue