1 |
robbat2 08/03/09 21:09:24 |
2 |
|
3 |
Modified: mysql.eclass |
4 |
Log: |
5 |
Catch failures of the mysql_install_db call. |
6 |
|
7 |
Revision Changes Path |
8 |
1.85 eclass/mysql.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.85&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.85&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?r1=1.84&r2=1.85 |
13 |
|
14 |
Index: mysql.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v |
17 |
retrieving revision 1.84 |
18 |
retrieving revision 1.85 |
19 |
diff -p -w -b -B -u -u -r1.84 -r1.85 |
20 |
--- mysql.eclass 16 Jan 2008 04:01:14 -0000 1.84 |
21 |
+++ mysql.eclass 9 Mar 2008 21:09:23 -0000 1.85 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.84 2008/01/16 04:01:14 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.85 2008/03/09 21:09:23 robbat2 Exp $ |
27 |
|
28 |
# Author: Francesco Riosa (Retired) <vivo@g.o> |
29 |
# Maintainer: Luca Longinotti <chtekk@g.o> |
30 |
@@ -821,7 +821,11 @@ mysql_pkg_config() { |
31 |
help_tables="${TMPDIR}/fill_help_tables.sql" |
32 |
|
33 |
pushd "${TMPDIR}" &>/dev/null |
34 |
- "${ROOT}/usr/bin/mysql_install_db" | grep -B5 -A999 -i "ERROR" |
35 |
+ "${ROOT}/usr/bin/mysql_install_db" >"${TMPDIR}"/mysql_install_db.log 2>&1 |
36 |
+ if [ $? -ne 0 ]; then |
37 |
+ grep -B5 -A999 -i "ERROR" "${TMPDIR}"/mysql_install_db.log 1>&2 |
38 |
+ die "Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log" |
39 |
+ fi |
40 |
popd &>/dev/null |
41 |
[[ -f "${ROOT}/${MY_DATADIR}/mysql/user.frm" ]] \ |
42 |
|| die "MySQL databases not installed" |
43 |
|
44 |
|
45 |
|
46 |
-- |
47 |
gentoo-commits@l.g.o mailing list |