From 8bf5642a8d53dd3e92eb567a95ede9534ef88be6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 6 Feb 2012 21:33:59 +0000 Subject: automatically use unpacker eclass if it is available --- eclass/base.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclass/base.eclass b/eclass/base.eclass index db35dc7009ef..b9e520b69ba9 100644 --- a/eclass/base.eclass +++ b/eclass/base.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/base.eclass,v 1.55 2011/12/14 23:38:09 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.56 2012/02/06 21:33:59 vapier Exp $ # @ECLASS: base.eclass # @MAINTAINER: @@ -59,7 +59,11 @@ base_src_unpack() { pushd "${WORKDIR}" > /dev/null - [[ -n "${A}" ]] && unpack ${A} + if [[ $(type -t unpacker_src_unpack) == "function" ]] ; then + unpacker_src_unpack + elif [[ -n ${A} ]] ; then + unpack ${A} + fi has src_prepare ${BASE_EXPF} || base_src_prepare popd > /dev/null -- cgit v1.2.3-65-gdbad