Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] unpacker.eclass and base.eclass integration
Date: Sun, 05 Feb 2012 05:21:44
Message-Id: 201202050021.06607.vapier@gentoo.org
In Reply to: [gentoo-dev] unpacker.eclass by Mike Frysinger
1 follow up: have base.eclass leverage unpacker.eclass when it's available
2 -mike
3
4 --- base.eclass 14 Dec 2011 23:38:09 -0000 1.55
5 +++ base.eclass 5 Feb 2012 05:19:28 -0000
6 @@ -59,7 +59,11 @@ base_src_unpack() {
7
8 pushd "${WORKDIR}" > /dev/null
9
10 - [[ -n "${A}" ]] && unpack ${A}
11 + if [[ $(type -t unpacker_src_unpack) == "function" ]] ; then
12 + unpacker_src_unpack
13 + elif [[ -n ${A} ]] ; then
14 + unpack ${A}
15 + fi
16 has src_prepare ${BASE_EXPF} || base_src_prepare
17
18 popd > /dev/null

Attachments

File name MIME type
signature.asc application/pgp-signature