summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-06 13:55:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-06 13:55:29 +0000
commit61d93649b459f3e698e1a22455cc0f458443fc42 (patch)
tree0f021b9e7fa020466808648cee6bc4d3b3d945c5 /eclass/kde-functions.eclass
parentRemove bmp useflag now that bmp is no more in portage. (diff)
downloadhistorical-61d93649b459f3e698e1a22455cc0f458443fc42.tar.gz
historical-61d93649b459f3e698e1a22455cc0f458443fc42.tar.bz2
historical-61d93649b459f3e698e1a22455cc0f458443fc42.zip
Use || ( ) dependency only if the list contains more than one version.
Diffstat (limited to 'eclass/kde-functions.eclass')
-rw-r--r--eclass/kde-functions.eclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass
index e7a114eedf06..5cf8b7d1c793 100644
--- a/eclass/kde-functions.eclass
+++ b/eclass/kde-functions.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.133 2006/02/17 22:18:20 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.134 2006/03/06 13:55:29 flameeyes Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
@@ -416,10 +416,14 @@ need-autoconf() {
# Note that only the kde versioning scheme is supported - ie x.y, and we only iterate through y
# (i.e. x can contain more . separators).
deprange() {
- echo -n "|| ( "
- deprange-list $@
- echo -n " )"
+ local list="$(deprange-list $@)"
+ if [[ ${list%% *} == "${list}" ]]; then
+ echo "${list}"
+ else
+ echo "|| ( ${list} )"
+ fi
}
+
deprange-list() {
# Assign, parse params
local MINVER=$1; shift