aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2012-05-16 17:27:54 -0500
committerPaul Varner <fuzzyray@gentoo.org>2012-05-16 17:27:54 -0500
commit79135c7585402eadeb9e06cbf3138f0d191b15d9 (patch)
tree89dad0c64122a31fc585f4adc9da8a325fe35108 /bin
parentFix output to be sorted using portage.versions.vercmp (bug 409449). (diff)
downloadgentoolkit-79135c7585402eadeb9e06cbf3138f0d191b15d9.tar.gz
gentoolkit-79135c7585402eadeb9e06cbf3138f0d191b15d9.tar.bz2
gentoolkit-79135c7585402eadeb9e06cbf3138f0d191b15d9.zip
Change sed statement in euse to fix bug 410365.
The sed statement was looking for the useflag as part of the regular expression. Since the input to the statement had already grepped for the relevant entries from use.local.desc, this is unneccessary. Changed the sed statement to look for '(.*) *' instead of '(${1}) *'.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/euse2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/euse b/bin/euse
index 27adb72..4d2c15d 100755
--- a/bin/euse
+++ b/bin/euse
@@ -781,7 +781,7 @@ showdesc() {
fi
# Fetch all the packages data using this flag
infos=$( grep -h ":${1} *-" ${ALL_PORTDIRS[@]/%//profiles/use.local.desc} 2> /dev/null \
- | sed -re "s/^([^:]+):(${1}) *- *(.+)/\1|\2|\3/g")
+ | sed -re "s/^([^:]+):(.*) *- *(.+)/\1|\2|\3/g")
OIFS=$IFS; IFS=$'\n'; infos=($infos); IFS=$OIFS;
for line in "${infos[@]}"; do
OIFS=$IFS; IFS="|"; line=($line); IFS=$OIFS