From 6d7f0d8da0e3e8f7a74c49377dcc191fd4fdc002 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 1 May 2009 17:33:51 +0000 Subject: Fix typo in Makefile svn path=/; revision=568 --- trunk/src/euse/euse | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'trunk/src/euse') diff --git a/trunk/src/euse/euse b/trunk/src/euse/euse index 7400709..f9fd2fd 100755 --- a/trunk/src/euse/euse +++ b/trunk/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 -- cgit v1.2.3