aboutsummaryrefslogtreecommitdiff
path: root/src/euse
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2009-05-05 16:02:10 +0000
committerfuzzyray <fuzzyray@gentoo.org>2009-05-05 16:02:10 +0000
commitab5d6784bbb1382b8a48cae001cbd2d075f58d21 (patch)
treeb123d2e675a998d8a28bd108e3dd66592922e89c /src/euse
parentMerge changes from trunk to fix issues in 0.2.4 (diff)
parentAdd some useful informations when using $EDITOR. (diff)
downloadgentoolkit-ab5d6784bbb1382b8a48cae001cbd2d075f58d21.tar.gz
gentoolkit-ab5d6784bbb1382b8a48cae001cbd2d075f58d21.tar.bz2
gentoolkit-ab5d6784bbb1382b8a48cae001cbd2d075f58d21.zip
Merge changes from trunk in prep for making trunk ready for version 0.3
svn path=/branches/gentoolkit-0.2.4/; revision=588
Diffstat (limited to 'src/euse')
-rwxr-xr-xsrc/euse/euse7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/euse/euse b/src/euse/euse
index 7400709..f9fd2fd 100755
--- a/src/euse/euse
+++ b/src/euse/euse
@@ -347,7 +347,7 @@ showinstdesc() {
local current_desc
local args
local -i foundone=0
- local IFS
+ local OIFS="$IFS"
args=("${@:-*}")
@@ -377,7 +377,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
@@ -397,7 +397,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")
@@ -409,6 +411,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