summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2016-07-20 12:23:01 -0400
committerBrian Evans <grknight@gentoo.org>2016-07-20 12:23:01 -0400
commit3f9e1ccadbb179e26960138ffe9e0e4b394c3c57 (patch)
tree56a4ef734eaf5a4576df6f1be280e7a09dc19d00 /dev-db/mysql-init-scripts/files
parentapp-dicts/myspell-en: amd64/x86 stable (diff)
downloadgentoo-3f9e1ccadbb179e26960138ffe9e0e4b394c3c57.tar.gz
gentoo-3f9e1ccadbb179e26960138ffe9e0e4b394c3c57.tar.bz2
gentoo-3f9e1ccadbb179e26960138ffe9e0e4b394c3c57.zip
dev-db/mysql-init-scripts: Version bump wrt bug 571508
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-db/mysql-init-scripts/files')
-rw-r--r--dev-db/mysql-init-scripts/files/init.d-2.04
-rw-r--r--dev-db/mysql-init-scripts/files/init.d-s64
2 files changed, 4 insertions, 4 deletions
diff --git a/dev-db/mysql-init-scripts/files/init.d-2.0 b/dev-db/mysql-init-scripts/files/init.d-2.0
index ec4f996db1e9..19a4b927dc48 100644
--- a/dev-db/mysql-init-scripts/files/init.d-2.0
+++ b/dev-db/mysql-init-scripts/files/init.d-2.0
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -72,7 +72,7 @@ start() {
if [ ! -d "${datadir}"/mysql ] ; then
# find which package is installed to report an error
local EROOT=$(portageq envvar EROOT)
- local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql))
+ local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql | head -n1))
if [ -z ${DBPKG_P} ] ; then
eerror "You don't appear to have a server package installed yet."
else
diff --git a/dev-db/mysql-init-scripts/files/init.d-s6 b/dev-db/mysql-init-scripts/files/init.d-s6
index 3c6feeca2057..573ffbc0cf56 100644
--- a/dev-db/mysql-init-scripts/files/init.d-s6
+++ b/dev-db/mysql-init-scripts/files/init.d-s6
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -63,7 +63,7 @@ start_pre() {
if [ ! -d "${datadir}"/mysql ] ; then
# find which package is installed to report an error
local EROOT=$(portageq envvar EROOT)
- local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql))
+ local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql | head -n1))
if [ -z ${DBPKG_P} ] ; then
eerror "You don't appear to have a server package installed yet."
else