summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-07-16 13:11:54 +0000
committerMichał Górny <mgorny@gentoo.org>2011-07-16 13:11:54 +0000
commit964c0a3cc18e445e03d0d1b2d7e64458a109180a (patch)
treea35c28b8aca73cba6b80669182d7427775a75f43 /eclass/git-2.eclass
parentCorrect pc file because include/ssm was missing in Cflags (diff)
downloadgentoo-2-964c0a3cc18e445e03d0d1b2d7e64458a109180a.tar.gz
gentoo-2-964c0a3cc18e445e03d0d1b2d7e64458a109180a.tar.bz2
gentoo-2-964c0a3cc18e445e03d0d1b2d7e64458a109180a.zip
Fix calling default_src_unpack in EAPI < 2. Use inlined default code instead.
Diffstat (limited to 'eclass/git-2.eclass')
-rw-r--r--eclass/git-2.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index 8fd5b53581dc..e9a423acadd5 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.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/git-2.eclass,v 1.11 2011/06/08 15:18:13 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.12 2011/07/16 13:11:54 mgorny Exp $
# @ECLASS: git-2.eclass
# @MAINTAINER:
@@ -521,5 +521,9 @@ git-2_src_unpack() {
# Users can specify some SRC_URI and we should
# unpack the files too.
- default_src_unpack
+ if has ${EAPI:-0} 0 1; then
+ [[ -n ${A} ]] && unpack ${A}
+ else
+ default_src_unpack
+ fi
}