summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-02-06 21:33:59 +0000
committerMike Frysinger <vapier@gentoo.org>2012-02-06 21:33:59 +0000
commit8bf5642a8d53dd3e92eb567a95ede9534ef88be6 (patch)
treef15657eb149f9c6a4d8b6fece3f2bee27950b510
parentAnother fix for bug 402357. Should be somewhat safer than the previous fix (diff)
downloadhistorical-8bf5642a8d53dd3e92eb567a95ede9534ef88be6.tar.gz
historical-8bf5642a8d53dd3e92eb567a95ede9534ef88be6.tar.bz2
historical-8bf5642a8d53dd3e92eb567a95ede9534ef88be6.zip
automatically use unpacker eclass if it is available
-rw-r--r--eclass/base.eclass8
1 files 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