diff options
author | 2009-01-17 16:56:55 +0000 | |
---|---|---|
committer | 2009-01-17 16:56:55 +0000 | |
commit | 896f7f0241592d464af0eb6d28963309c4fb637c (patch) | |
tree | b64a55f6c08e1e09dc697e22969a985429d6b347 /eclass/base.eclass | |
parent | ppc stable #254073 (diff) | |
download | gentoo-2-896f7f0241592d464af0eb6d28963309c4fb637c.tar.gz gentoo-2-896f7f0241592d464af0eb6d28963309c4fb637c.tar.bz2 gentoo-2-896f7f0241592d464af0eb6d28963309c4fb637c.zip |
don't pass empty $A to unpack
Diffstat (limited to 'eclass/base.eclass')
-rw-r--r-- | eclass/base.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/base.eclass b/eclass/base.eclass index df3d00eb9237..0f72ec7536fa 100644 --- a/eclass/base.eclass +++ b/eclass/base.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/base.eclass,v 1.35 2008/11/09 15:47:47 loki_val Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.36 2009/01/17 16:56:55 mr_bones_ Exp $ # @ECLASS: base.eclass # @MAINTAINER: @@ -38,8 +38,7 @@ base_src_unpack() { debug-print-function $FUNCNAME "$@" - if [ -z "$1" ] - then + if [ -z "$1" ] ; then case "${EAPI:-0}" in 2) base_src_util unpack @@ -80,7 +79,9 @@ base_src_util() { case $1 in unpack) debug-print-section unpack - unpack ${A} + if [ ! -z "$A" ] ; then + unpack ${A} + fi ;; patch) debug-print-section patch @@ -91,7 +92,7 @@ base_src_util() { debug-print-section autopatch debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES, PATCHES1=$PATCHES1" cd "${S}" - if [[ ${#PATCHES[@]} -gt 1 ]]; then + if [[ ${#PATCHES[@]} -gt 1 ]] ; then for x in "${PATCHES[@]}"; do debug-print "$FUNCNAME: autopatch: patching from ${x}" epatch "${x}" |