summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorIngmar Vanhassel <ingmar@gentoo.org>2008-04-15 15:57:35 +0000
committerIngmar Vanhassel <ingmar@gentoo.org>2008-04-15 15:57:35 +0000
commite0ef74492e7d641b91e6fa33af7aed7b30c9cbcb (patch)
treef2a1745a18ae1502f080c752cd7220ee50d40350 /eclass
parentFixed for gcc-4.3, thanks to Peter Alfredsen (bug #217758) (diff)
downloadgentoo-2-e0ef74492e7d641b91e6fa33af7aed7b30c9cbcb.tar.gz
gentoo-2-e0ef74492e7d641b91e6fa33af7aed7b30c9cbcb.tar.bz2
gentoo-2-e0ef74492e7d641b91e6fa33af7aed7b30c9cbcb.zip
Prevent a warning when PATCHES isn't set.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index bdcdad21d5ae..e51017fdeb45 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.212 2008/04/14 12:46:58 zlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.213 2008/04/15 15:57:35 ingmar Exp $
# @ECLASS: kde.eclass
# @MAINTAINER:
@@ -135,7 +135,7 @@ kde_src_unpack() {
else
packages="${PN}"
fi
- if [[ $(declare -p PATCHES) != 'declare -a '* ]]; then
+ if [[ -n ${PATCHES[@]} && $(declare -p PATCHES) != 'declare -a '* ]]; then
PATCHES=(${PATCHES})
fi
for p in ${packages}; do