summaryrefslogtreecommitdiff
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
commit5990b2e8f215ba6a352bd23cea9169a3ac834e88 (patch)
tree19160ba6aabd985be4da4c6f7ec1e3ea6f440c77 /eclass/mysql.eclass
parentAdd 3.51.27 as the final release in the 3.51 series. (diff)
downloadhistorical-5990b2e8f215ba6a352bd23cea9169a3ac834e88.tar.gz
historical-5990b2e8f215ba6a352bd23cea9169a3ac834e88.tar.bz2
historical-5990b2e8f215ba6a352bd23cea9169a3ac834e88.zip
Fix QA warning: "EXPORT_FUNCTIONS is called before inherit in mysql.eclass."
Diffstat (limited to 'eclass/mysql.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: