summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-04-27 18:58:07 +0000
committerMike Frysinger <vapier@gentoo.org>2014-04-27 18:58:07 +0000
commit2863d74302dc030d3be330384c738fb4e6d56893 (patch)
tree4894353033ef3c07679922609800107dd59cdf67 /eclass
parentVersion bump. Removed old (diff)
downloadgentoo-2-2863d74302dc030d3be330384c738fb4e6d56893.tar.gz
gentoo-2-2863d74302dc030d3be330384c738fb4e6d56893.tar.bz2
gentoo-2-2863d74302dc030d3be330384c738fb4e6d56893.zip
optfeature: fix eclass doc and style #498988
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 82c6117ed40f..6768635cb0df 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.432 2014/03/15 00:47:42 creffett Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.433 2014/04/27 18:58:07 vapier Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1738,11 +1738,11 @@ check_license() { die "you no longer need this as portage supports ACCEPT_LICENS
# The following snippet would suggest app-misc/foo for optional foo support,
# app-misc/bar or app-misc/baz[bar] for optional bar support
# and either both app-misc/a and app-misc/b or app-misc/c for alphabet support.
-# @CODE:
-# optfeature "foo support" app-misc/foo
-# optfeature "bar support" app-misc/bar app-misc/baz[bar]
-# optfeature "alphabet support" "app-misc/a app-misc/b" app-misc/c
-#
+# @CODE
+# optfeature "foo support" app-misc/foo
+# optfeature "bar support" app-misc/bar app-misc/baz[bar]
+# optfeature "alphabet support" "app-misc/a app-misc/b" app-misc/c
+# @CODE
optfeature() {
debug-print-function ${FUNCNAME} "$@"
local i j msg
@@ -1750,23 +1750,23 @@ optfeature() {
local flag=0
shift
for i; do
- for j in $i; do
- if has_version "$j"; then
+ for j in ${i}; do
+ if has_version "${j}"; then
flag=1
else
flag=0
break
fi
done
- if [[ $flag -eq 1 ]]; then
+ if [[ ${flag} -eq 1 ]]; then
break
fi
done
- if [[ $flag -eq 0 ]]; then
+ if [[ ${flag} -eq 0 ]]; then
for i; do
msg=" "
- for j in $i; do
- msg="${msg} ${j} and"
+ for j in ${i}; do
+ msg+=" ${j} and"
done
msg="${msg:0: -4} for ${desc}"
elog "${msg}"