summaryrefslogtreecommitdiff
path: root/bin/euse
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2009-05-05 21:04:27 +0000
committerfuzzyray <fuzzyray@gentoo.org>2009-05-05 21:04:27 +0000
commit7dd5d6b8f250db3657040e3bcb9e44b674d74bb4 (patch)
treea222f01c8594973b60e9de5508d4d2600309547f /bin/euse
parentd03c4875f20b77a54021232bc3c7be612706b4a4 (diff)
downloadgentoolkit-7dd5d6b8f250db3657040e3bcb9e44b674d74bb4.tar.gz
Update to most recent versions and add changes from djanderson
svn path=/trunk/gentoolkit/; revision=599
Diffstat (limited to 'bin/euse')
-rwxr-xr-xbin/euse7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/euse b/bin/euse
index b49b120..df61e32 100755
--- a/bin/euse
+++ b/bin/euse
@@ -346,7 +346,7 @@ showinstdesc() {
local current_desc
local args
local -i foundone=0
- local IFS
+ local OIFS="$IFS"
args=("${@:-*}")
@@ -376,7 +376,7 @@ showinstdesc() {
echo "$desc"
# get list of installed packages matching this USE flag.
IFS=$'\n'
- packages=($(equery -q -C hasuse -i "${1}" | awk '{ print $(NF-1) }'))
+ packages=($(equery -q -C hasuse -i "${1}" | awk '{ print $(NF-1) }' | sort))
foundone+=${#packages[@]}
printf "\nInstalled packages matching this USE flag: "
if [ ${foundone} -gt 0 ]; then
@@ -396,7 +396,9 @@ showinstdesc() {
# exit status of equery instead of a subshell and pipe to wc -l
if [ $(equery -q -C list -i -e "${pkg}" | wc -l) -gt 0 ]; then
foundone=1
+ IFS="$OIFS"
get_flagstatus "${flag}"
+ IFS=': '
printf "%s (%s):\n%s\n\n" "${flag}" "${pkg}" "${desc#- }"
fi
done < <(grep ":${1} *-" "${descdir}/use.local.desc")
@@ -408,6 +410,7 @@ showinstdesc() {
if [ ${foundone} -lt 1 ]; then
echo "no matching entries found"
fi
+ IFS="$OIFS"
}
# show a list of all currently active flags and where they are activated