diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-04-05 00:43:26 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-04-05 00:43:26 +0000 |
commit | e4b809a6a710480346fd7de9b3e6ef8fc46b33b6 (patch) | |
tree | b69f4ff438a30eb7d04cffebd178aa6999868aa1 /eclass/mysql.eclass | |
parent | Delete old ebuilds. (diff) | |
download | historical-e4b809a6a710480346fd7de9b3e6ef8fc46b33b6.tar.gz historical-e4b809a6a710480346fd7de9b3e6ef8fc46b33b6.tar.bz2 historical-e4b809a6a710480346fd7de9b3e6ef8fc46b33b6.zip |
Use the last instance of datadir if we fall to manually processing.
Diffstat (limited to 'eclass/mysql.eclass')
-rw-r--r-- | eclass/mysql.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index 9a7713b5fb87..8d2ede30a2ac 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.88 2008/03/10 02:47:20 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.89 2008/04/05 00:43:26 robbat2 Exp $ # Author: Francesco Riosa (Retired) <vivo@gentoo.org> # Maintainer: MySQL Team <mysql-bugs@gentoo.org> @@ -226,7 +226,8 @@ mysql_init_vars() { | tail -n1` if [[ -z "${MY_DATADIR}" ]] ; then MY_DATADIR=`grep ^datadir "${MY_SYSCONFDIR}/my.cnf" \ - | sed -e 's/.*=\s*//'` + | sed -e 's/.*=\s*//' \ + | tail -n1` fi fi if [[ -z "${MY_DATADIR}" ]] ; then |