summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2015-06-28 13:12:52 +0000
committerJohannes Huber <johu@gentoo.org>2015-06-28 13:12:52 +0000
commitfc4ac9e64b1fa41b45a86b99f729547f2aabf6bc (patch)
tree1fe673adf11d53f9e49460457f253ab313888b8c /eclass
parentVersion bump. Fix several deps. (diff)
downloadgentoo-2-fc4ac9e64b1fa41b45a86b99f729547f2aabf6bc.tar.gz
gentoo-2-fc4ac9e64b1fa41b45a86b99f729547f2aabf6bc.tar.bz2
gentoo-2-fc4ac9e64b1fa41b45a86b99f729547f2aabf6bc.zip
Loop optimization as suggested by Michal Górny <mgorny@gentoo.org> on -dev ml.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/kde5.eclass6
2 files changed, 8 insertions, 4 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index bc89ab6932e2..f6f4c00aa57d 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1691 2015/06/27 22:02:21 johu Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1692 2015/06/28 13:12:52 johu Exp $
+
+ 28 Jun 2015; Johannes Huber <johu@gentoo.org> kde5.eclass:
+ Loop optimization as suggested by Michal Górny <mgorny@gentoo.org> on -dev
+ ml.
27 Jun 2015; Johannes Huber <johu@gentoo.org> kde5-functions.eclass,
kde5.eclass:
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index d579f622c182..acb165be8cee 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde5.eclass,v 1.11 2015/06/27 22:02:21 johu Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde5.eclass,v 1.12 2015/06/28 13:12:52 johu Exp $
# @ECLASS: kde5.eclass
# @MAINTAINER:
@@ -375,7 +375,7 @@ kde5_src_prepare() {
if [[ ${KDE_BUILD_TYPE} = release ]] ; then
if [[ -d po ]] ; then
pushd po > /dev/null
- for lang in $(ls) ; do
+ for lang in *; do
if ! has ${lang} ${LINGUAS} ; then
if [[ ${lang} != CMakeLists.txt ]] ; then
rm -rf ${lang}
@@ -390,7 +390,7 @@ kde5_src_prepare() {
if [[ ${KDE_HANDBOOK} = true ]] ; then
pushd doc > /dev/null
- for lang in $(ls) ; do
+ for lang in *; do
if ! has ${lang} ${LINGUAS} ; then
comment_add_subdirectory ${lang}
fi