Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Bo Oersted Andresen (zlin)" <zlin@g.o>
Subject: gentoo-x86 commit in eclass: kde.eclass
Date: Mon, 14 Apr 2008 12:46:58 +0000
zlin        08/04/14 12:46:58

  Modified:             kde.eclass
  Log:
  Really fix PATCHES handling.

Revision  Changes    Path
1.212                eclass/kde.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kde.eclass?rev=1.212&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kde.eclass?rev=1.212&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kde.eclass?r1=1.211&r2=1.212

Index: kde.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -r1.211 -r1.212
--- kde.eclass	14 Apr 2008 09:59:42 -0000	1.211
+++ kde.eclass	14 Apr 2008 12:46:58 -0000	1.212
@@ -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.211 2008/04/14 09:59:42 zlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.212 2008/04/14 12:46:58 zlin Exp $
 
 # @ECLASS: kde.eclass
 # @MAINTAINER:
@@ -128,28 +128,26 @@
 		# placed in $PATCHDIR. Monolithic ebuilds will use the split ebuild patches.
 		[[ -d ${KDE_S} ]] || base_src_unpack unpack
 		if [[ -d "${PATCHDIR}" ]] ; then
-			local packages p patchdir
+			local packages p f
 			if is-parent-package ${CATEGORY}/${PN} ; then
 				packages="$(get-child-packages ${CATEGORY}/${PN})"
 				packages="${packages//${CATEGORY}\//} ${PN}"
 			else
 				packages="${PN}"
 			fi
-			if [[ ${#PATCHES[@]} -gt 1 ]]; then
-				for p in ${packages}; do
-					PATCHES=( "${PATCHES[@]}" $(ls ${patchdir}/${p}-${PV}-*{diff,patch} 2>/dev/null) )
-					if [[ -n "${KDEBASE}" ]]; then
-						PATCHES=( "${PATCHES[@]}" $(ls ${patchdir}/${p}-${SLOT}-*{diff,patch} 2>/dev/null) )
-					fi
-				done
-			else
-				for p in ${packages}; do
-					PATCHES=(${PATCHES} $(ls ${patchdir}/${p}-${PV}-*{diff,patch} 2>/dev/null))
-					if [[ -n "${KDEBASE}" ]]; then
-						PATCHES=(${PATCHES} $(ls ${patchdir}/${p}-${SLOT}-*{diff,patch} 2>/dev/null))
-					fi
-				done
+			if [[ $(declare -p PATCHES) != 'declare -a '* ]]; then
+				PATCHES=(${PATCHES})
 			fi
+			for p in ${packages}; do
+				for f in "${PATCHDIR}"/${p}-${PV}-*{diff,patch}; do
+					[[ -e ${f} ]] && PATCHES+=("${f}")
+				done
+				if [[ -n "${KDEBASE}" ]]; then
+					for f in "${PATCHDIR}"/${p}-${SLOT}-*{diff,patch}; do
+						[[ -e ${f} ]] && PATCHES+=("${f}")
+					done
+				fi
+			done
 		fi
 		[[ -n ${PATCHES[@]} ]] && base_src_unpack autopatch
 	else



-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in eclass: kde.eclass
Next by thread:
gentoo-x86 commit in eclass: kde.eclass
Previous by date:
gentoo-x86 commit in dev-ruby/mysql-ruby: mysql-ruby-2.7.5.ebuild ChangeLog
Next by date:
gentoo-x86 commit in media-sound/gamix: gamix-1.99_p14-r2.ebuild ChangeLog


Updated Dec 24, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.