From: Mike Frysinger Date: Wed, 21 Dec 2011 21:44:18 +0000 (+0000) Subject: check for len and not the patch files themselves X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6096ae91b14bd3d526c137e3f3944389a50b5e56;p=gentoo.git check for len and not the patch files themselves --- diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index 30222096b552..aa056ae2b1ab 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.107 2011/12/21 21:01:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.108 2011/12/21 21:44:18 vapier Exp $ # # Maintainer: Toolchain Ninjas # @@ -165,7 +165,7 @@ tc-binutils_apply_patches() { die "sorry, but this binutils doesn't yet support uClibc :(" fi fi - [[ ${PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}" + [[ ${#PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}" epatch_user fi