summaryrefslogtreecommitdiff
path: root/eclass
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
commit21dd6b2d3978d521c8976a046a99c011390748eb (patch)
treee5c02ac0a8f9bfa599245d45317b1e5d906a7e50 /eclass
parentAnother fix for bug 402357. Should be somewhat safer than the previous fix (diff)
downloadgentoo-2-21dd6b2d3978d521c8976a046a99c011390748eb.tar.gz
gentoo-2-21dd6b2d3978d521c8976a046a99c011390748eb.tar.bz2
gentoo-2-21dd6b2d3978d521c8976a046a99c011390748eb.zip
automatically use unpacker eclass if it is available
Diffstat (limited to 'eclass')
-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