summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-01-31 05:47:21 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-01-31 05:47:21 +0000
commit4685e6a6b92a998cfd9374cd6e74365e7b18ad5a (patch)
treec385e0f3c5f2834a6a6b58fb2113605a12d550c2 /eclass
parentAdd 3.51.27 as the final release in the 3.51 series. (diff)
downloadgentoo-2-4685e6a6b92a998cfd9374cd6e74365e7b18ad5a.tar.gz
gentoo-2-4685e6a6b92a998cfd9374cd6e74365e7b18ad5a.tar.bz2
gentoo-2-4685e6a6b92a998cfd9374cd6e74365e7b18ad5a.zip
Fix QA warning: "EXPORT_FUNCTIONS is called before inherit in mysql.eclass."
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql.eclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass
index 3cb755d969c1..634af30ec9c1 100644
--- a/eclass/mysql.eclass
+++ b/eclass/mysql.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.125 2010/01/31 05:00:43 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.126 2010/01/31 05:47:21 robbat2 Exp $
# @ECLASS: mysql.eclass
# @MAINTAINER:
@@ -20,6 +20,17 @@ WANT_AUTOMAKE="latest"
inherit eutils flag-o-matic gnuconfig autotools mysql_fx versionator
+# Shorten the path because the socket path length must be shorter than 107 chars
+# and we will run a mysql server during test phase
+S="${WORKDIR}/mysql"
+
+[[ "${MY_EXTRAS_VER}" == "latest" ]] && MY_EXTRAS_VER="20090228-0714Z"
+if [[ "${MY_EXTRAS_VER}" == "live" ]]; then
+ EGIT_PROJECT=mysql-extras
+ EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
+ inherit git
+fi
+
case "${EAPI:-0}" in
2)
EXPORT_FUNCTIONS pkg_setup \
@@ -42,17 +53,6 @@ case "${EAPI:-0}" in
die "Unsupported EAPI: ${EAPI}" ;;
esac
-# Shorten the path because the socket path length must be shorter than 107 chars
-# and we will run a mysql server during test phase
-S="${WORKDIR}/mysql"
-
-[[ "${MY_EXTRAS_VER}" == "latest" ]] && MY_EXTRAS_VER="20090228-0714Z"
-if [[ "${MY_EXTRAS_VER}" == "live" ]]; then
- EGIT_PROJECT=mysql-extras
- EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
- inherit git
-fi
-
# @ECLASS-VARIABLE: MYSQL_VERSION_ID
# @DESCRIPTION:
# MYSQL_VERSION_ID will be: